[jQuery] How to call a function in a hidden form.
I have a submit form that will appear with -
jQuery("#new_topic").toggle("slow"); -
Unfortunately, I don't seem to figure out how to call the function -
submit_topic_form();- with a jquery command when the user is
submitting the form..
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".inputsubmit").click(function(){
jQuery("#new_topic").toggle("slow");
});
jQuery("#submit_topic").click(function(){
submit_topic_form();
});
});
</script>
Under "prototype" it successfully works with:
<td width="75"><input type="button" name="submit_topic" value="Submit"
class="inputsubmit"
onclick="submit_topic_form();Effect.toggle(\'new_topic\',\'appear\')">
Can anybody help? Thank you!!