Martin Martin - 1 year ago 135
Javascript Question

finding all iframe srcs with jquery

is there a way, with jquery, to for exapmle on click, find all iframe elements, remove their src= tag, and give it back? sort of, refresh :)

Was looking for foreach function or something like that, but I'M rather hopeless at this :(

Thanks for your time,

Answer Source
$("iframe").each(function() { 
        var src= $(this).attr('src');

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download