I'm trying to change my HTML code by using JQuery. When I use this code it works:
$('.theclass').html('hello');
But what I really want to do is to include a statemente in my HTML. So I tried this but it does not work.
$('.theclass').html(
"<select name='myName' id='myId'>
<option value=''>-</option>
<option value='A'>A</option>
<option value='B'>B</option>
</select>"
);
Any help? Thanks