Calling a function as soon as an element is encountered. [Jquery]
- by Waseem
Suppose I have an element on my page with id "some_id". I want to call a function as soon as I encounter this element. Something like following.
$("#some_id").call_a_function(function () {
// do stuff
});