View Full Version : Help, help. This should be easy for people of your expertise
n00bOfn00bS
06-04-2007, 12:04 PM
How do I retrieve the name of the text box that is getting submitted in a form in JavaScript? There is only one button and one text box on the form, the name is made in real time so i cant preset it....
Use a hidden input and set its value to the name of the textbox at the same time you set the name itself.
n00bOfn00bS
06-04-2007, 12:29 PM
Ah dam! Good idea! Thanks man... Im feeling like this | | big:o :o :o
Just make sure you provide ample fallback for non-Javascript browsers. This doesn't sound like a very unobtrusive method you're using here.
n00bOfn00bS
06-04-2007, 12:53 PM
Yeah, I dont think thats going to work. Im actually making a JSP page, I can show you some of the basic code if you want to see it. Thanks for trying to help me out
Im actually making a JSP pageJavascript and Java are two very different things. JSP pages do not rely on Javascript to work.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.