I do have a input type checkbox which has a data attribute on that. data attribute contains a javascript method which need to be executed on click of that textbox.
<input type="checkbox" id="id001" data-display="checkDisplayOption(p1,p2,p3);">
Now in jQuery -
$("#id001").click(function(){
$("#id001").data("display");
});
I am looking for $("#id001").data("display"); to trigger checkDisplayOption method but it is not happening.