This code works fine to send one parameter to a javascript function, but when I add a second parameter, it doesn't. onclick="open_livemass(\"Devotion\",'+devotion_channel.idx+');". Is this the right way to send these parameters to the function? One parameter is static. The other, devotion_channel.idx, is determined by the javascript that creates the HTML.
show_devotion_alert = '<span style="cursor:pointer;"'+
'onclick="open_livemass(\"Devotion\",'+devotion_channel.idx+');"><br/>'+
devotion_name+' '+time_info+'<br/>('+devotion_channel.name+')</span>';
$('#Devotion_alert').html(show_devotion_alert);