Thursday, June 7, 2012

on click null inputbox using javascript



<input type="text" name="txtcity" id="txtcity" style="float:left; width:70px ; margin-right:5px;color: rgb(204, 204, 204); " value="City" onFocus="if (this.value == 'City'){this.value='';this.style.color='#000000';}" onBlur="if (this.value == ''){this.value='City';this.style.color='#cccccc';}"   />

No comments:

Post a Comment

If you Satisfied , Please Leave a comment