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

Gouri ShankarRank #2,911 · 494 reputationPosted Jul 20, 2016, 10:19 PM EDT
suman goud159 reputationPosted Jul 20, 2016, 10:21 PM EDT
Gouri ShankarRank #2,911 · 494 reputationPosted Jul 20, 2016, 10:40 PM EDT
if your button is like this
Then change the selector like this
$(“input”).click(function() {
Alert(this.id);
});
suman goud159 reputationPosted Jul 20, 2016, 10:43 PM EDT
Ravi PatelRank #439 · 5.7K reputationPosted Jul 20, 2016, 11:32 PM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Jul 20, 2016, 11:49 PM EDT