Dynamically append to the form need help

Hi, I want to ask some help I am trying to append dynamically this (checkbox and button) to my form
but I get into trouble it would not append.

This is what I want to append.


    var contentform=  '<div class="checkbox">'+
             '<label>'+
               '<input type="checkbox" class="chckEmp[]" value="">'+
                   '  <input class="btn btn-mini mybtnstyle" value="valueFrmDB" type="button">'+
                  '</label>'+
             '</div>';

     $('#theForm').append(contentform);



 <div class="frmClass">
    <form id="theForm">


    </form>
</div>

Thank you in advance.

It’s okay now :slight_smile: