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 :)
html_is or ifTxtIDis unique or not). So if you have no other info to give us, you won't get any (good\helpful) answers.You see you already got two answers that won't help you a bit...valueattribute to the input. i couldn't reproduce it based on the stripped code, it seems something other than the input code is interfering (e.g. thehtml_, theTxtIDvariable).