Text input properties... is handler value readable?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aguy1306
    New Member
    • Sep 2006
    • 3

    Text input properties... is handler value readable?

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

    for example
    Code:
    <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
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    If you mean "some number", then in validate_num_le ngth, 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.

    Comment

    Working...