You have some errors in the last two lines of code. The following:
Code:
}); .keyup(function(){
should read
Code:
}).keyup(function(){
Remove the semi-colon (;) and the space just before .keyup
And this
Code:
${"#text").text($(this).attr("value")};
should start and finish with parenthesis rather than curly braces:
Code:
$("#text").text($(this).attr("value"));
One of the best ways of trapping javascript syntax errors is by installing Firebug - an add-on for the Firefox browser. It has a Console that reports errors, among other things.