| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|selecting the entered text in an input form|
| 3:07 pm on Aug 3, 2010 (gmt 0)|
So I have a small form and when the form is submitted I want the value entered into the field to be sent to a function as a variable
but this doesn't work played with it and all I can get is either [object Object] or undefined
What am I doing wrong?
| 3:12 pm on Aug 3, 2010 (gmt 0)|
Looks like you're using jQuery, so you'd want to use the val() method instead of a value property.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved