6
Answers

How to save clicked value in session using jquery

suman goud

suman goud

8y
331
1
when i click tree view node am getting id by giving alert
 
$('.treeview a').on('click', function () {
alert(this.id);
});
 
but how to save that id session , i want to use in controller 
 i have tried this
 
$('.treeview a').on('click', function () {
@Session["id"]=this.id;
});
 
but am not getting value 
Answers (6)