Access form generated with jQuery.get()
Can't seem to access a form that was generated with the following code:
Page test.php contains a div element (id='form_block') and also a link that calls for:
$.get("create_form.php", function(data){
$("div#form_block").html(data);
});
the HTML data generated by create_form.php contains:
<form name="the_form" method="post" action="some_page.php" onSubmit="validate_form()">
<input type="text"value="mmmm"/>
<input type="submit" value="submit">
</form>
I figured I should include the function validate_form() into test.php, but from there it seems not possible to access the form.
Is this because the form is not part of the DOM for test.php?
Does anyone know how to get access to the form? Thanx!