chris ha scritto:
Hi, I'm new to jQuery, so please take me slow :)

I've got a textarea:
<textarea cols="30" class="textarea" id="code" name="code"></textarea>

And a div:
<div id="code_preview"></div>

For example if i want to write the code for embeding a youtube vid in
the textarea i want the div to display the embeded vid.

Help! :D
This should work:

$('#code').bind('blur', function() {
 $('#code_preview').html($(this).val());
}

Bye :-)




--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39 347 7196482

Reply via email to