Problem solved. You cannot limit what the update function does. It will do the update for all rows in the table despite the foreach function. In order to accomplish the same objective, I've resorted to:
I have js code which appends a div if an element with a particular class is present in the DOM. Here is the code for that. The steps being first creates a div with a partilcular class. Then it checks if the Dom has an element with class id banner , and if it has then it will append the created di...