Web form

P

paul

I have


<input type="text" id="ip" class="input" value="" />

<input type="submit" value="Find" onclick="Find()" />


Now... if I click the submit button it works fine. but not when i press
enter in the text box. How do i get around this?

Thanks
Paul
www.pjenkins.co.uk
 
E

Evertjan.

I have

<input type="text" id="ip" class="input" value="" />
<input type="submit" value="Find" onclick="Find()" />

Now... if I click the submit button it works fine. but not when i press
enter in the text box. How do i get around this?

This is not [primarily] a javascript Q.
A html NG seems more appropriate.
Please follow up on such NG unless you want to discuss a JS angle.

Still, after 10 seconds of Googling:
<http://ppewww.physics.gla.ac.uk/~flavell/www/formquestion.html>
 
G

Guillermo Rauch

Use <form onsubmit="Find()"> instead.
And switch to the HTML list.

Best,
- Guillermo
 
E

Evertjan.

Guillermo Rauch wrote on 02 jan 2007 in comp.lang.javascript:
Use <form onsubmit="Find()"> instead.

If you quote on my answer, please include that.

If you quote on the earlier posting, please do not include me.
And switch to the HTML list.

I said so in my posting, why skip it and say the same?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top