By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,886 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

Text input properties... is handler value readable?

P: 3
I am trying to find out if javascript can read an objects handler as a value

for example
Expand|Select|Wrap|Line Numbers
  1. <input type="text" size="25" value= "some number" id="number_input" name="number_input" onchange="validate_num_length(this,true,7,8,11000000,69999999);
can i retrieve the value of the onchange handler?

thanks

aguy
Sep 18 '06 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
If you mean "some number", then in validate_num_length, the first argument is the text box, so you can use something like textbox.value to get the value.

Alternatively, if you don't need a reference to the text box, just pass this.value as the first argument.
May 13 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.