FraserK FraserK - 5 months ago 22
jQuery Question

jQuery Simpletip which dynamic content

I have the script:

$('#download').live("click", function(e) {
e.preventDefault();
alert('Please right-click and select "Save As".');
//do other stuff when a click happens
});


I need to have a similar script that will append a simpletip popup to the link (This plugin here SimpleTip). As the element with the id #download is created after the dom initially loads.

This is how simpletip is activated:

$("JQUERY SELECTOR").simpletip();


Thanks in advance :)

EDIT:

If you can link me to or suggest another way of doing this with the 'hover' event that will help.

Answer

The only possibility you have is to call

$('#download').simpletip();

after you created that element.