I am working on a dynamic form in which I need to create a dynamic input field on the press of a button. Here is the JQuery code:
$(this).find(".inner").html(html_ + "<input type='text' class='TB' id='" + TxtID + "' />");
This is the created DOM markup:
<input type="text" class="TB" id="S0Q0_TB0"/>
This input field is working in Chrome and Safari (Enabled for edit), but it seems to be disabled in Opera, Firefox and IE 9.
Couldnt find a relevant question in the KB. Need a quick solution
Thanks in advance 🙂
I tested it on firefox and Internet Explorer, and it works.
http://jsfiddle.net/mDDPW/2/
Are you sure it’s not a side effect for somewhere else in your code ?