I have an input which I need to check whether it is empty or not:
<input id="myinput" name="myinput" type="text" value="hello" />
The input above could change any time, so I need to check it on onchange?
If my input is not empty then I need to add the class ok or else add class noTxt.
The class could be added to the element below.
<div id="status" style="display:none;"> </div>