Greetings,

I have something like this:
PHP Code:
<input type="text" name="country" value="<?php echo $country?>" onchange="SaveCountry(this.value);" />
Basically when someone types in a country, the onchange will run an AJAX function and saves the country name to the database.

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.

Thanks