onblur deletes data when submit, why?
- by Syom
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" />
it works fine, but when i click on submit button, it also deletes the value "something"
so, what can i do, if i want, that when i click on submit button, value doesn't delete?
thanks