Hi; I have a datagrid which has some textboxes and other controls. I want to clear the text in textbox when the user focus the textbox. How can I do that ? if someone tell me how can i access the value of the textbox in datagrid with javascript, I will be very happy Thanks
it works good thank you. I have another question related to it, I want to control the value first, then I want to clear it. For example: if (value="qwerty") { this.value=''; } Can I do it with function like above ? and HOW ?
quick an easy way would be this: try type "qwerty" put the focus out of the field and then back in it will work ... Alternative is to write a function and then call that function but not absolutely necessary I suppose.