Jquery one issue
<p>My mark up</p>

<pre><code>&lt;form action="blah/foo" method="POST" id="frm1"&gt;
&lt;input type="hidden" id="v" /&gt;
&lt;/form&gt;
......
......
&lt;!--after some code--&gt;
&lt;button id="btn1"&gt;test&lt;/button&gt;
&lt;input type="text" id="somevalue" /&gt;
</code></pre>

<p>My purpose is when i click the button btn1,Grab the value of <code>somevalue</code> and give it to the hidden value <code>v</code> and submit the form ,the form needs to submit (ONLY ONCE) so i used the jquery <code>one</code> method and thats working fine</p>

<p>Second thing is if <code>somevalue</code> is empty i dont want to submit</p>

<p>THE PROBLEM scenario</p>

<pre><code>&lt;script&gt;
$('#btn1').one('click',function(){
    if(!$('#somevalue').val()){
    $('p#msg').html('Empty value');
     return false;
    }
    $('#frm1').submit();

});
&lt;/script&gt;
</code></pre>

<p>IF user first makes an empty input and try to submit the error msg will show..but after that even with a valid input the click event wont trigger(I know thats because of the <code>one</code> function)</p>

<p>Im looking for some alternative that the form will submit only once </p>
