View Single Post
  #1 (permalink)  
Old July 16th, 2012, 11:49 AM
akumok akumok is offline
Authorized User
Points: 69, Level: 1
Points: 69, Level: 1 Points: 69, Level: 1 Points: 69, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2009
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Thumbs down jQuery from Chapter 11

Have a problem to run jQuery code from p. 387

$(function ()
{
$(
':input[type=text], textarea').each
{
function()
{
var newText = 'Please enter your ' +
$(
this).parent().prev().text().toLowerCase().trim();
$(
this).attr('value', newText);
}).one(
'focus', function()
{
this.value = '', this.className = ''
}).addClass('Watermark').css('width', '300px');


});

I'm thinking somewhere } brace is missing. Any ideas?
Reply With Quote