Hello,
Inside partial view there is a ListTable with id (#ListTable) and row has class name (.rowedit).
When I am try to get this id using below code in main page inside the ajax result, then error occured "typeerror $(...).attr(...) is undefined"
var id = $('#ListTable tr.rowedit').attr('id').substring(5);
alert(id)
Kindly replay me...
JQuery not detecting id element in partial view MVC4 C#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Chandu KumawatRank #1,449 · 1.1K reputationPosted Apr 11, 2016, 11:23 PM EDT
A few more possible errors:
$is not known. Possible solutions: