I have a channel field that prompts a content editor to copy and paste a Google maps embed code for a specific destination. Using either default EE tag behavior, or jQuery, I'd like to remove certain attributes from the default <iframe>
markup-- specifically, the "height", "width" and "style" attributes that Google includes by default in the embed code.
I'm not sure if there's a way to do this via EE, but I tried the following line of jQuery to at least remove the style
attribute to no avail:
$('div.item iframe').removeAttr('style');
Anybody have any ideas as to how I might achieve this? I'm currently overriding the attributes via my stylesheet using important!
declarations, but I'd prefer to remove them from the markup entirely, if possible.
Thanks for any insight here.