Hi All,

I press enter on a text box on an html form. When i press enter the form tries to submit. I would like to stop the event from trying to submit the form within an  event listener on the text box. I have coded successfully a listener on the textbox and am executing the code i require. I then want to stop the form from submitting from the text box with _javascript_ code.

I am using the method :

event.stopPropagation();


This method just gives me _javascript_ errors and the form still submits. I know I can just set the onsubmit on the button to "return false" but this wont work for me as i have other code also working on the form for pop-up menus etc..

I any body can help would be appreciated.

--
Regards,

Ryan Meder
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---

Reply via email to