Hi,

I've got a form with a button-element as submit-button.

<form id="newadForm" name="newadForm" action="form.php" method="post">
...
<button type="button" class="form-button" name="submit">Send</button>
</form>

At the top of the page I've got this:

jQuery.noConflict();
jQuery(document).ready(function($){
  $("form#newadForm button.form-button").click( function() {
    console.log("fire");
    $("#newadForm").submit();
  });
  $("#newadForm").validate({
    submitHandler: function(form) {
      form.submit();
    }
  });
});

When I click the button, firebug tells me:

1. 'fire'
2. form.submit is not a function

What can I do?

cu
rigo

Reply via email to