I'm stack in such question:
example
<td>
<span style="cursor:pointer;" onclick="$(this).parent().html('<input type=\'text\' value=\'asdasd\' onkeydown=\'javascript:if(char_click(event)==13){send_ajax_settings($(this),'title' ,'3')}\'>');">
<?=$result['settings_title']?>
</span>
</td>
looks like fine but in browser I get "Uncaught SyntaxError: Unexpected identifier" in this row(chrome listing):
<span style="cursor:pointer;" onclick="$(this).parent().html('input type=\'text\' value=\'asdasd\' onkeydown=\'javascript:if(char_click(event)==13){send_ajax_settings($(this),'title' ,'3')}\'>');">asdasd</span>
Please, help me - if somebody had such trouble before.Where am I wrong? Maybe will be better do it via PHP echo(I guess not:) )?
send_ajax_settings($(this),'title' ,'3'). Do yourself a favour and write maintainable code...