Jquery submit form error

Posted by Gandalf StormCrow on Stack Overflow See other posts from Stack Overflow or by Gandalf StormCrow
Published on 2010-03-20T11:39:19Z Indexed on 2010/03/20 11:41 UTC
Read the original article Hit count: 375

Filed under:
|

I have a form which I want to submit upon button click which is outside the form, here is my HTML :

<form id="checkin" name="checkin" id="checkin" action#" method="post">
        <input type="text" tabindex="100" class="identifier" name="identifier" id="identifier">
        <input type="submit" tabindex="101" value="Submito" class="elsubmito" name="submit">
    </form>

Here is my jQuery :

$("button").live('click', function(){

                                            $("#checkin").submit();
                                        });

$("#checkin").live('submit', function(){
                                        });

When I click submit button inside the form its submitting ok, but its not submitting when I click on the button which is outside the form tags, why? how can I fix this ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript