I have a function:
$('#def_video_settings .add_rem:contains(-)').live('click', function(){
// do something
});
I want execute code “//do something” at another place. Something like this
$('#def_video_settings .add_rem:contains(-)').trigger('click');
But it does not work.
It is possible? 🙂
http://jsfiddle.net/tjUk5/
HTML
Script
This is working as it should.
If you are adding content dynamically, this might be different.