Welcome to WebmasterWorld Guest from 54.196.144.100

Forum Moderators: open

Message Too Old, No Replies

Display first 10 characters

     

ahmed24

2:55 pm on May 10, 2011 (gmt 0)

5+ Year Member



I have the following onChange code on a input text field that calls the frmShow function with "this.value" of the form field.

However, I need it to call the frmShow function with only the first 10 characters of the "this.value"

onChange="frmShow('hide', 'text', this.value)"

can anyone kindly tell me how this can be done?

thanks

ahmed24

3:12 pm on May 10, 2011 (gmt 0)

5+ Year Member



its ok i have figured it out like this:

this.value.substr(0,10)