HighDots Forums  

buttonless input form field?

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss buttonless input form field? in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mike
 
Posts: n/a

Default buttonless input form field? - 01-20-2005 , 11:05 PM






I have a form with a single input field, and I'm invoking a javascript to
act on the contents of the field. I want to remove the buttons from the
form, and just have the user hit enter to launch the function. How can I do
this?

Thanks!

Mike



Reply With Quote
  #2  
Old   
BMR
 
Posts: n/a

Default Re: buttonless input form field? - 01-21-2005 , 03:12 AM






Mike a écrit :
Quote:
I have a form with a single input field, and I'm invoking a javascript to
act on the contents of the field. I want to remove the buttons from the
form, and just have the user hit enter to launch the function. How can I do
this?

Thanks!

Mike


just <form onsubmit="return function_on_fields()">

function_on_fields() must return true (the form will be submitted) or
false (it won't)

BMR


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.