I have an ifram on the page with the ms-dlgFrame class, and in this iframe I want to remove contenteditable = "true" on the elements since it is not supported by Safari on the iPad (I check the user agent first).
I have some problems with combining .find(), .each(), .attr() and .removeAttr()
I tried something like:
console.log("iPad"); $('.ms-dlgFrame').contents().find("div").attr("contenteditable").each(function() { $(this).removeAttr("contenteditable"); });
Any ideas?
Thanks in advance.
source share