I'm wondering if I can use jQuery to recode HTML that's entered into a form. For example, I would like to "stripe" HTML table code that users manually enter into a form text area. If the textarea has an id=tablecode it does not work to do
$('textarea#tablecode tr:even').addClass('table_even');
Is there some way to use jQuery to manipulate the html that the users enter into the form box? or do I need to submit the form to the server and then use regular expressions in PHP to add my classes? Thanks.