If you need to make it pulsate based on the click event, you can use .on()
:
$(container).on('click', selector, function() {
$(this).pulsate(...);
});
The use of .live()
has been deprecated since 1.7
Where container
is an element up in the DOM tree that's not removed while your app is running and selector
is the relative query (anchored to the container) that's used to match elements you wish to pulsate when clicked.
Example
<div id="container"></div>
Some code would append a new element.
$('#container').append('<div class="bla">bla</div>');
Then this code could be used to achieve what you want:
$('#container').on('click', '.bla', function() {
$(this).pulsate(...);
});