jquery - Multiple same PartialsViews and Json -
The answer may already be, but I am unable to find the correct search string .. ..
I have similar observations in almost the same page, as are several examples of the same partial view.
Partial view contains a button when pressed shows partial visualization of the product.
If I return a full post and all the comments are being updated, then I can do this easily but it is an ugly solution.
What I wanted was the button pressed I need Jason call on the server. I then save the comment and pass a new partial view back with a list of new comments.
Then I only want to update the comments on that particular product that I had added to the comment.
I use this in JavaScript to assign this button;
$ (".clsTest"). Unbind ("click") Click (function (evt) { but it only adds it to the first instance of the button, which is getting to everyone.
I think that I have some important elements here. I am asking this question correctly.
I have no I'm not even a jQuery ninja but I think you need to look at
$ (".clsTest"). (Function () {$ (this). Unbund ( "Click"). Hnkshn (evt) {// your stuff ...});});
Actiacs
Charles
Comments
Post a Comment