i replacing 2 divs using ajaxresponse.render() have 2 associated partial views them.
but there span following:
<span id="total-counts">23 comments</span>
i need replace value well. how call ajaxresponse.render() replace value?
there no associated view span. might easy thing can't make work.
i tried these:
note second param view name.
ajaxresponse.render("#total-counts", "string", comments.count, updatestyle.replace); ajaxresponse.render("#total-counts", "", comments.count, updatestyle.replace);
none of these work. don't want create partial view unless way.
thx
on ajax success callback use
$("#total-counts").html(' '); $("#total-counts").html(comments.count+" comments");
Comments
Post a Comment