Ann
Ann

Reputation: 27

How to automatically change texts on a dynamic webpage using jQuery?

I need to run functions to change texts in multiple tables on a webpage. The tables are populated dynamically when user does multiple clicks or searches on the page. So, loading these functions on page load doesn't serve any good.

My question is how can I monitor these AJAX call and load functions as a callback whenever a DOM Node is changed or an attribute is added?

Any thoughts? I have a starting trouble.

Upvotes: 0

Views: 132

Answers (1)

Neil S
Neil S

Reputation: 2304

jQuery has built-in callback functions for their shorthand ajax functions like get() and load(), and you can set success and error callbacks though the parameters in the ajax() method.

Please refer to jQuery's robust documentation here

Upvotes: 1

Related Questions