JQuery hasData() method
Last Updated :
16 Jul, 2020
This hasData() method in JQuery is used to determine whether an element has any jQuery data associated with it. This data may be text, event associated with element. There are two examples discussed below:
Syntax:
jQuery.hasData(element)
Arguments:
- element: This parameter is a DOM element which is to be checked for data.
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...