I`m dynamically building a form with few labels and textboxes within a for loop in classic asp,
code:
<td>
<input type="text"" name="<%=xtinct.item(i).getAttribute("col1")%>"/>
</td>
I need to put default text that should hide on onfocus.I can`t use “PlaceHolder” attribute.
HOw can I do it here???Please suggest some answers.
Use placeholder
you need to use some jQuery for IE. Read this post –
http://dipaksblogonline.blogspot.in/2012/02/html5-placeholder-in-ie7-and-ie8-fixed.html
Edit:
This will work on all browsers –
Demo