Results 1 to 2 of 2
Jul 25, 2011, 16:36 #1
- Join Date
- Jul 2007
- 0 Post(s)
- 0 Thread(s)
onChange problem when deleting <input> value
I have something like this:
<input type="text" name="country" value="<?php echo $country; ?>" onchange="SaveCountry(this.value);" />
The problem I'm having is when someone goes back to this input later and tries to delete the country, the onchange function will not work. It works perfectly except when someone tries to totally delete the field. I am guessing it has something to do with a blank value.
Let me know if there is a way to deal with this.