1

Is there any way to determine the content of div tab is change using jQuery in a jsp.

$.post("/core-web/ccepar/dele",jQuery.param({currentPageNumber: tempcurrentPage,chapterTitle:postmytesId}) ,function(data)
{

    $("#center_in").html(data);
}   

The center_in is div id where i am putting data it is main jsp page.

Is there is any way to compare the element of (data). I mean there is any syntax where i can compare each element of data in my main content jsp.

Anurag
  • 227
  • 1
  • 5
  • 14
  • Hiya, can you give some code as well man! or some extra info? you can access .text inside divs and compare ether with old div but again it varies; cheerios! – Tats_innit Mar 30 '12 at 07:12
  • please be a bit more specific with what problem are you facing in implementing this, and what have you found till now? – Sujit Agarwal Mar 30 '12 at 07:14
  • http://stackoverflow.com/questions/1091661/detect-element-content-changes-with-jquery – hohner Mar 30 '12 at 07:14

1 Answers1

0

I don't know jsp but jquery has the .change function so that anything that changes in that element will activate the event/function specified.

JT Smith
  • 741
  • 4
  • 12
  • yes sir thanks for rep bt i have used (#----).change() function but still not working...the above
    is one div where my content are posted and rest of link are are stable.
    – Anurag Mar 30 '12 at 10:57