I have this code for getting the attributes of an html element inside an iframe.
Code:
$("#frameID").contents().find("#htmlelementID").attr("myattr");
My dilemma here is i want to add a new attribute on the html element inside my iframe.
I'll truly appreciate every idea that will help me on this.
data-*attribute for this purpose.