Skip to content Skip to sidebar Skip to footer

How To Get A Data-id Attribute With Jquery

I'm trying to get department's id value. I mean I need to get the departmentID from the element. This function is getting the input value of elements having departmentName as a cla

Solution 1:

Use

this.$el.find(".departmentName").data("id");

Post a Comment for "How To Get A Data-id Attribute With Jquery"