hello
im having difficulty with the for watermark script, here is what is output onto the screen:
http://img525.imageshack.us/img525/8...zzzzzzzzzq.jpg
here is the markup:
<script type="text/javascript">
$(function () {
$(':input[type=text], textarea').each(function () {
var newText = 'Please enter your ' +
$(this).parent().prev().text();
$(this).attr('value', newText);
}).one('focus', function () {
this.value = '', this.className = ''
}).addClass('Watermark').css('width', '500px');
});
</script>
<p>
<td><span class="widelabel">Name:</span></td>
<td><asp:TextBox ID="nameTextBox" runat="server" /></td>
<br />
<td><span class="widelabel">User Name:</span></td>
<td><asp:TextBox ID="userNameTextBox" runat="server" /></td>
<br />
<td><span class="widelabel">Address:</span></td>
<td><asp:TextBox ID="addressTextBox" runat="server" /></td>
<br />
<td><span class="widelabel">City:</span></td>
<td><asp:TextBox ID="cityTextBox" runat="server" /></td>
<br />
<td><span class="widelabel">Zip:</span></td>
<td><asp:TextBox ID="zipTextBox" runat="server" /></td>
<br />
<td><span class="widelabel">Home Phone:</span></td>
<td><asp:TextBox ID="homePhoneTextBox" runat="server" /></td>
<br />
<td><span class="widelabel">Extension:</span></td>
<td><asp:TextBox ID="extensionTextBox" runat="server" /></td>
<br />
<td><span class="widelabel">Mobile Phone:</span></td>
<td><asp:TextBox ID="mobilePhoneTextBox" runat="server" /></td>
<br />
</p>
<p>