get/set textbox created dynamically
Hello,
I dynamically create a textbox as follows, but I cannot retrieve the value entered by the user:
- bp_boards = ' \
<tr id="hwNumberBoards"> \
<td>No. of modules:</td> \
<td><input id="hwNumberBoards" name="hwNumberBoards" type="text" size="3"></td> \
</tr> \
';
$('#hwStructureDetails').append(bp_boards);
The dynamically created textbox shows up on the page but after the user enters a value, I cannot retrieve it from jquery ( alert($("#hwNumberBoards").val()) is "undefined")
I would appreciate any help.
Thank you,
Flavius.