hi ,
how to enable a button when i enter a text in a textbox.and also it should be disabled initially after user types a text in the textbox it should enable
Use
disabled attribute to disable the submit button initially.
eg.[html]<input id="button" type="submit" disabled>[/html]
To enable it, use
object.disabled=true | false (
example)
on the
onkeyup event of textbox (text input)
[html]<input type="text" name="abc" onkeyup="document.getElementById('button').disable d = this.value=='' ? true : false;">[/html]