How can i select iframe element? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can i select iframe element?

i want to change the style of iframe element.

3rd May 2018, 5:55 PM
Sachin Kumar
Sachin Kumar - avatar
14 Answers
+ 3
$("iframe").css({ "width":"80%"});
3rd May 2018, 6:07 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 3
Line 45 in your JS is probably the issue. I'm not sure what you're trying to do there.
5th May 2018, 12:27 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 2
Can you provide your code?
3rd May 2018, 8:00 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 2
You're using a really outdated version of jQuery. Use a more recent one.
4th May 2018, 12:53 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 2
You have two versions of jQuery included. Remove line 8.
4th May 2018, 12:56 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
4th May 2018, 12:49 AM
Sachin Kumar
Sachin Kumar - avatar
+ 1
I can't read any of that code. I'll look at it when I get on my computer.
4th May 2018, 1:01 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
well i tried that couples of time but it didnt work show me some examples.
3rd May 2018, 6:10 PM
Sachin Kumar
Sachin Kumar - avatar
0
My code is so messy
4th May 2018, 12:48 AM
Sachin Kumar
Sachin Kumar - avatar
0
Like version 4
4th May 2018, 12:54 AM
Sachin Kumar
Sachin Kumar - avatar
0
Ok I removed it
4th May 2018, 12:57 AM
Sachin Kumar
Sachin Kumar - avatar
0
Now show me how can I select the iframe element
4th May 2018, 12:58 AM
Sachin Kumar
Sachin Kumar - avatar
0
Please
4th May 2018, 12:58 AM
Sachin Kumar
Sachin Kumar - avatar
0
Ok thanks a lot
4th May 2018, 1:01 AM
Sachin Kumar
Sachin Kumar - avatar