I don't know if it was just a typo, but your example would've returned
different objects:

$("FIRST_NAME1_") would return any items with the tag "FIRST_NAME1_"

$("#FIRST_NAME1") would return any items with the ID "FIRST_NAME1"

If typo's are the problem in your code, then this should work if your input
field has an id of "FIRST_NAME1"

//setting
$("#FIRST_NAME1").val("Uli");

//getting
$("#FIRST_NAME1")val();

Hope that helps,
Chad


[EMAIL PROTECTED] wrote:
> 
> hi
> guys, i'm working since a couple of days with jquery, i think
> it's great. But now i have a problem and couldn't solve it so far. I want
> to get the value of an input field, i know that that it
> should work with var firstName1 = $("FIRST_NAME1_").val(); but
> it didn't! To set the value with
> $("#FIRST_NAME1").val(theFirstName); is working fine, but the
> way reverse not. Has anybody an idea how i could solve
> this problem? Thanks, Uli 
> 
> 
> 
> 
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Get-the-value-from-an-input-field-tf2771469.html#a7731221
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to