Hey I'm trying to echo out an onclick event that calls a javascript function
The Javascript code is from a different file
Now when the javascript is created through the echo output of the php the function doesn't seem to be found any ideas?
Code:
echo " <tr> <td> <input title='Add New Link' type='image' height='24' width='24' src='add.png' name='add_link' onClick=\"alertme()\"> </td> <td> <p>Add Link</p> </td> </tr>";
Code:
function alertme() { $.ajax({ url: "links_component.php?ACT='ADDLINK'", success: function(data) { $('#add_link').html(data); } }); };
Comment