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';}"   />

Comments

Popular posts from this blog

Call PHP Function In JavaScript Using Ajax

List of Post Category Wise in wordpress