[jQuery] onclick vs. click(function()

[jQuery] onclick vs. click(function()


Hello, I am in the process of transfering code from Scriptaculous to
jQuery. I have a little submit form (div id="new_topic") that will
appear by clicking a button. Within this div there is a "cancel" and a
"submit" button. The "Scriptaculous" original code looks like this:
<input type="button" name="submit_topic" value="Submit"
class="inputsubmit"
onclick="submit_topic_form();Effect.toggle(\'new_topic\',\'appear\')">
I somehow have difficulties to properly fire the
"submit_topic_form();" using jQuery. How do I have to include this
function? I assume that "onclick" doesn't work anymore when I am using
click(function()?!
        jQuery(".inputsubmit").click(function(){
        jQuery("#new_topic").toggle("slow").function(submit_topic_form());
Is there any golden way to accomplish my goal? Thank you!