I have two Ajax-methods in my code and I would like one of them to fire the other. It could be demonstrated like this:
$(function() {
//Code that "clicks #target" and triggers the mthod below.
});
$( "#target" ).click(function() {
alert( "The above method clicked #target" );
});
Been looking around a bit but im probably using the wrong searchterms. Thanks!