Unable to select dynamically generated form elements (ajax)
I have a main.php page
the following code is hardcoded in main form
<form action="test.php" method="POST">
the following i开发者_如何学JAVAs the code generated dynamically using AJAX
<input type="checkbox" value="test" name="test[]"/>
<input type="checkbox" value="test1" name="test[]"/>
<input type="submit" value="go">
ideally speaking on clicking the go button the page should submit to test.php page with the post value of the check elements but now i find no action is taken by the browser. Also i find no error message in error console. this used to work upto firefox 3.5 and IE 8. However in Firefox 3.6 the dynamically generated form elements are not recognized at all Is there a mistake in the code and is a there a work around
Make sure that the dynamic content does not replace the form
.. but gets appended to it (or replaces the contents and not the actual form
tag..)
精彩评论