I have the following script.
<input style="color: #ccc" type="text" value="something" name="country"
onFocus="if (this.value == 'something') {
this.value='';this.style.color='black';}"
onblur="if (this.value != 'something') {
this.value='something'}" />
<input type="submit" value="save" />
On blur, the input value is set to a default value, as it’s supposed to. When i click on submit button, the value is also set to “something”; when submitting, i need to post the data the user wrote in the input, rather than the default.
What can I do if I want that when I click on submit button, the input value doesn’t change?
thanks
I think this is what you’re after