The following gives me the error Uncaught SyntaxError: Unexpected identifier:
$('span.xtro').html('');
$('span.xtro').html('<input type='button' class='newbutton send' value='Send request' onclick=
"javascript:request('send','1','2');'>');
How can I correct this?
It’s not the best way of using jQuery… onclick attributes are not recommended. here’s an alternative
EDIT changed $el.bind to $el.on which is what is used nowadays