How to change iframe height in javascript/jquery?change iframe width/height in js/jqueryHow do JavaScript closures work?How do I check if an element is hidden in jQuery?How to change an element's class with JavaScript?How do I redirect to another webpage?How to check whether a checkbox is checked in jQuery?How do I include a JavaScript file in another JavaScript file?What does “use strict” do in JavaScript, and what is the reasoning behind it?How to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?“Thinking in AngularJS” if I have a jQuery background?

Notation clarity question for a conglomerate of accidentals

Airport Security - advanced check, 4th amendment breach

How to protect bash function from being overridden?

Is the "spacetime" the same thing as the mathematical 4th dimension?

Everyone Gets a Window Seat

French license plates

Why not add cuspidal curves in the moduli space of stable curves?

What did the Federation give the Prophets in exchange for access to the wormhole in DS9?

Disable all sound permanently

Realistically, how much do you need to start investing?

What powers or limits devil promotion?

How do French and other Romance language speakers cope with the movable do system?

Booting Ubuntu from USB drive on MSI motherboard -- EVERYTHING fails

Rank-one positive decomposition for a entry-wise positive positive definite matrix

Knights and Knaves: What does C say?

Search for something difficult to count/estimate

What is the point of impeaching Trump?

How to refresh wired service getRecord manually?

Why do popular TCP-using services have UDP as well as TCP entries in /etc/services?

Is "weekend warrior" derogatory?

Quote to show students don't have to fear making mistakes

Using RECURSIVE in Virtual Layer

What action is recommended if your accommodation refuses to let you leave without paying additional fees?

How to "Start as close to the end as possible", and why to do so?



How to change iframe height in javascript/jquery?


change iframe width/height in js/jqueryHow do JavaScript closures work?How do I check if an element is hidden in jQuery?How to change an element's class with JavaScript?How do I redirect to another webpage?How to check whether a checkbox is checked in jQuery?How do I include a JavaScript file in another JavaScript file?What does “use strict” do in JavaScript, and what is the reasoning behind it?How to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?“Thinking in AngularJS” if I have a jQuery background?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0















I am working on a js/jquery code as shown below in which I want to override the css present in the HTML Code below.






console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));
$("div.scribble-live").find("iframe").css("height", "200px");
console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));

.scribble-live, .scrbbl-embed 
border: thin black solid;
margin: 1em;


iframe
background: orange;

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="scribble-live">
<div class="scrbbl-embed">
<iframe width="100%" height="15236px" frameborder="0"
class="scrbbl-embed scrbbl-event"
style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
</iframe>
</div>
</div>





Problem Statement:



The above js/jquery code doesn't seem to override the css ( style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;") present in the HTML code above.










share|improve this question


























  • I made your code runnable to help a little with diagnosing your problem and added a couple of log statements. You'll note that the CSS attribute does change with your code. Odds are you're looking for a visible change in the layout as a result of the CSS change. However, to test that, we need more example HTML so we can see how the <iframe> is supposed to interact with surrounding elements.

    – Conspicuous Compiler
    Mar 28 at 21:02

















0















I am working on a js/jquery code as shown below in which I want to override the css present in the HTML Code below.






console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));
$("div.scribble-live").find("iframe").css("height", "200px");
console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));

.scribble-live, .scrbbl-embed 
border: thin black solid;
margin: 1em;


iframe
background: orange;

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="scribble-live">
<div class="scrbbl-embed">
<iframe width="100%" height="15236px" frameborder="0"
class="scrbbl-embed scrbbl-event"
style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
</iframe>
</div>
</div>





Problem Statement:



The above js/jquery code doesn't seem to override the css ( style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;") present in the HTML code above.










share|improve this question


























  • I made your code runnable to help a little with diagnosing your problem and added a couple of log statements. You'll note that the CSS attribute does change with your code. Odds are you're looking for a visible change in the layout as a result of the CSS change. However, to test that, we need more example HTML so we can see how the <iframe> is supposed to interact with surrounding elements.

    – Conspicuous Compiler
    Mar 28 at 21:02













0












0








0


0






I am working on a js/jquery code as shown below in which I want to override the css present in the HTML Code below.






console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));
$("div.scribble-live").find("iframe").css("height", "200px");
console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));

.scribble-live, .scrbbl-embed 
border: thin black solid;
margin: 1em;


iframe
background: orange;

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="scribble-live">
<div class="scrbbl-embed">
<iframe width="100%" height="15236px" frameborder="0"
class="scrbbl-embed scrbbl-event"
style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
</iframe>
</div>
</div>





Problem Statement:



The above js/jquery code doesn't seem to override the css ( style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;") present in the HTML code above.










share|improve this question
















I am working on a js/jquery code as shown below in which I want to override the css present in the HTML Code below.






console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));
$("div.scribble-live").find("iframe").css("height", "200px");
console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));

.scribble-live, .scrbbl-embed 
border: thin black solid;
margin: 1em;


iframe
background: orange;

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="scribble-live">
<div class="scrbbl-embed">
<iframe width="100%" height="15236px" frameborder="0"
class="scrbbl-embed scrbbl-event"
style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
</iframe>
</div>
</div>





Problem Statement:



The above js/jquery code doesn't seem to override the css ( style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;") present in the HTML code above.






console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));
$("div.scribble-live").find("iframe").css("height", "200px");
console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));

.scribble-live, .scrbbl-embed 
border: thin black solid;
margin: 1em;


iframe
background: orange;

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="scribble-live">
<div class="scrbbl-embed">
<iframe width="100%" height="15236px" frameborder="0"
class="scrbbl-embed scrbbl-event"
style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
</iframe>
</div>
</div>





console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));
$("div.scribble-live").find("iframe").css("height", "200px");
console.log("iframe height is", $("div.scribble-live").find("iframe").css("height"));

.scribble-live, .scrbbl-embed 
border: thin black solid;
margin: 1em;


iframe
background: orange;

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="scribble-live">
<div class="scrbbl-embed">
<iframe width="100%" height="15236px" frameborder="0"
class="scrbbl-embed scrbbl-event"
style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
</iframe>
</div>
</div>






javascript jquery html css






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 21:20







flash

















asked Mar 28 at 20:45









flashflash

1222 gold badges7 silver badges27 bronze badges




1222 gold badges7 silver badges27 bronze badges















  • I made your code runnable to help a little with diagnosing your problem and added a couple of log statements. You'll note that the CSS attribute does change with your code. Odds are you're looking for a visible change in the layout as a result of the CSS change. However, to test that, we need more example HTML so we can see how the <iframe> is supposed to interact with surrounding elements.

    – Conspicuous Compiler
    Mar 28 at 21:02

















  • I made your code runnable to help a little with diagnosing your problem and added a couple of log statements. You'll note that the CSS attribute does change with your code. Odds are you're looking for a visible change in the layout as a result of the CSS change. However, to test that, we need more example HTML so we can see how the <iframe> is supposed to interact with surrounding elements.

    – Conspicuous Compiler
    Mar 28 at 21:02
















I made your code runnable to help a little with diagnosing your problem and added a couple of log statements. You'll note that the CSS attribute does change with your code. Odds are you're looking for a visible change in the layout as a result of the CSS change. However, to test that, we need more example HTML so we can see how the <iframe> is supposed to interact with surrounding elements.

– Conspicuous Compiler
Mar 28 at 21:02





I made your code runnable to help a little with diagnosing your problem and added a couple of log statements. You'll note that the CSS attribute does change with your code. Odds are you're looking for a visible change in the layout as a result of the CSS change. However, to test that, we need more example HTML so we can see how the <iframe> is supposed to interact with surrounding elements.

– Conspicuous Compiler
Mar 28 at 21:02












2 Answers
2






active

oldest

votes


















1
















I guess there are 2 different things what you need to do here because there are 2 places where you have height values in your generated HTML code. Because you cannot remove any of them as I understand we need to operate with these steps:



1. Attribute change



The first thing is to change the height attribute from your code with the following line of code:



$("div.scribble-live").find("iframe").attr("height", "200px");


This will change the height attribute in the following HTML as below:



<iframe width="100%" height="200px" frameborder="0"
class="scrbbl-embed scrbbl-event"
style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
</iframe>


You can read further about .attr() here.



2. Style property change



The second thing which is changing the style attribute's height value:



$("div.scribble-live").find("iframe").css("height", "200px");


By doing this the second height in the style attribute will be changed as well:



<iframe width="100%" height="200px" frameborder="0"
class="scrbbl-embed scrbbl-event"
style="border: none; visibility: visible; width: 50px; height: 200px; min-width: 100%;">
</iframe>


Read more about jQuery function .css() here.



Summary



With those function calls you are changing both values. Let me share a picture which function is changing what:
Attr-css



Update:
Just realized that you have the height 2 times in your HTML so I have updated my answer based on that.






share|improve this answer



























  • I tried but it doesn't work.

    – flash
    Mar 28 at 21:03











  • Just edited my answer, you have the height property 2 times in your code.

    – norbitrial
    Mar 28 at 21:10











  • Do I need to paste this $("div.scribble-live").find("iframe").attr("height", "200px"); only in my script ?

    – flash
    Mar 28 at 22:23











  • I guess if you use your original solution with the css function and just remove the height attribute from the iframe html tag (not from style) then it will work. The issue is that you have the height as attribute and also as a style property. So if you keep the height only in style attribute and using the jQuery's css function then it should work. Let me know if you need further help.

    – norbitrial
    Mar 28 at 22:32











  • html code is not in my control because it is created through script.

    – flash
    Mar 28 at 22:34


















0
















For override the height prop in style attribute.



$("div.scribble-live .scrbbl-event").height("200px"); 


For override the iframe height attribute.



$("div.scribble-live .scrbbl-event").attr("height", "200px");


You have to execute both script because height prop inside style attribute will always override the iframe height attibute value.






share|improve this answer




























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406588%2fhow-to-change-iframe-height-in-javascript-jquery%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1
















    I guess there are 2 different things what you need to do here because there are 2 places where you have height values in your generated HTML code. Because you cannot remove any of them as I understand we need to operate with these steps:



    1. Attribute change



    The first thing is to change the height attribute from your code with the following line of code:



    $("div.scribble-live").find("iframe").attr("height", "200px");


    This will change the height attribute in the following HTML as below:



    <iframe width="100%" height="200px" frameborder="0"
    class="scrbbl-embed scrbbl-event"
    style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
    </iframe>


    You can read further about .attr() here.



    2. Style property change



    The second thing which is changing the style attribute's height value:



    $("div.scribble-live").find("iframe").css("height", "200px");


    By doing this the second height in the style attribute will be changed as well:



    <iframe width="100%" height="200px" frameborder="0"
    class="scrbbl-embed scrbbl-event"
    style="border: none; visibility: visible; width: 50px; height: 200px; min-width: 100%;">
    </iframe>


    Read more about jQuery function .css() here.



    Summary



    With those function calls you are changing both values. Let me share a picture which function is changing what:
    Attr-css



    Update:
    Just realized that you have the height 2 times in your HTML so I have updated my answer based on that.






    share|improve this answer



























    • I tried but it doesn't work.

      – flash
      Mar 28 at 21:03











    • Just edited my answer, you have the height property 2 times in your code.

      – norbitrial
      Mar 28 at 21:10











    • Do I need to paste this $("div.scribble-live").find("iframe").attr("height", "200px"); only in my script ?

      – flash
      Mar 28 at 22:23











    • I guess if you use your original solution with the css function and just remove the height attribute from the iframe html tag (not from style) then it will work. The issue is that you have the height as attribute and also as a style property. So if you keep the height only in style attribute and using the jQuery's css function then it should work. Let me know if you need further help.

      – norbitrial
      Mar 28 at 22:32











    • html code is not in my control because it is created through script.

      – flash
      Mar 28 at 22:34















    1
















    I guess there are 2 different things what you need to do here because there are 2 places where you have height values in your generated HTML code. Because you cannot remove any of them as I understand we need to operate with these steps:



    1. Attribute change



    The first thing is to change the height attribute from your code with the following line of code:



    $("div.scribble-live").find("iframe").attr("height", "200px");


    This will change the height attribute in the following HTML as below:



    <iframe width="100%" height="200px" frameborder="0"
    class="scrbbl-embed scrbbl-event"
    style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
    </iframe>


    You can read further about .attr() here.



    2. Style property change



    The second thing which is changing the style attribute's height value:



    $("div.scribble-live").find("iframe").css("height", "200px");


    By doing this the second height in the style attribute will be changed as well:



    <iframe width="100%" height="200px" frameborder="0"
    class="scrbbl-embed scrbbl-event"
    style="border: none; visibility: visible; width: 50px; height: 200px; min-width: 100%;">
    </iframe>


    Read more about jQuery function .css() here.



    Summary



    With those function calls you are changing both values. Let me share a picture which function is changing what:
    Attr-css



    Update:
    Just realized that you have the height 2 times in your HTML so I have updated my answer based on that.






    share|improve this answer



























    • I tried but it doesn't work.

      – flash
      Mar 28 at 21:03











    • Just edited my answer, you have the height property 2 times in your code.

      – norbitrial
      Mar 28 at 21:10











    • Do I need to paste this $("div.scribble-live").find("iframe").attr("height", "200px"); only in my script ?

      – flash
      Mar 28 at 22:23











    • I guess if you use your original solution with the css function and just remove the height attribute from the iframe html tag (not from style) then it will work. The issue is that you have the height as attribute and also as a style property. So if you keep the height only in style attribute and using the jQuery's css function then it should work. Let me know if you need further help.

      – norbitrial
      Mar 28 at 22:32











    • html code is not in my control because it is created through script.

      – flash
      Mar 28 at 22:34













    1














    1










    1









    I guess there are 2 different things what you need to do here because there are 2 places where you have height values in your generated HTML code. Because you cannot remove any of them as I understand we need to operate with these steps:



    1. Attribute change



    The first thing is to change the height attribute from your code with the following line of code:



    $("div.scribble-live").find("iframe").attr("height", "200px");


    This will change the height attribute in the following HTML as below:



    <iframe width="100%" height="200px" frameborder="0"
    class="scrbbl-embed scrbbl-event"
    style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
    </iframe>


    You can read further about .attr() here.



    2. Style property change



    The second thing which is changing the style attribute's height value:



    $("div.scribble-live").find("iframe").css("height", "200px");


    By doing this the second height in the style attribute will be changed as well:



    <iframe width="100%" height="200px" frameborder="0"
    class="scrbbl-embed scrbbl-event"
    style="border: none; visibility: visible; width: 50px; height: 200px; min-width: 100%;">
    </iframe>


    Read more about jQuery function .css() here.



    Summary



    With those function calls you are changing both values. Let me share a picture which function is changing what:
    Attr-css



    Update:
    Just realized that you have the height 2 times in your HTML so I have updated my answer based on that.






    share|improve this answer















    I guess there are 2 different things what you need to do here because there are 2 places where you have height values in your generated HTML code. Because you cannot remove any of them as I understand we need to operate with these steps:



    1. Attribute change



    The first thing is to change the height attribute from your code with the following line of code:



    $("div.scribble-live").find("iframe").attr("height", "200px");


    This will change the height attribute in the following HTML as below:



    <iframe width="100%" height="200px" frameborder="0"
    class="scrbbl-embed scrbbl-event"
    style="border: none; visibility: visible; width: 50px; height: 15236px; min-width: 100%;">
    </iframe>


    You can read further about .attr() here.



    2. Style property change



    The second thing which is changing the style attribute's height value:



    $("div.scribble-live").find("iframe").css("height", "200px");


    By doing this the second height in the style attribute will be changed as well:



    <iframe width="100%" height="200px" frameborder="0"
    class="scrbbl-embed scrbbl-event"
    style="border: none; visibility: visible; width: 50px; height: 200px; min-width: 100%;">
    </iframe>


    Read more about jQuery function .css() here.



    Summary



    With those function calls you are changing both values. Let me share a picture which function is changing what:
    Attr-css



    Update:
    Just realized that you have the height 2 times in your HTML so I have updated my answer based on that.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 28 at 23:09

























    answered Mar 28 at 20:55









    norbitrialnorbitrial

    9324 silver badges14 bronze badges




    9324 silver badges14 bronze badges















    • I tried but it doesn't work.

      – flash
      Mar 28 at 21:03











    • Just edited my answer, you have the height property 2 times in your code.

      – norbitrial
      Mar 28 at 21:10











    • Do I need to paste this $("div.scribble-live").find("iframe").attr("height", "200px"); only in my script ?

      – flash
      Mar 28 at 22:23











    • I guess if you use your original solution with the css function and just remove the height attribute from the iframe html tag (not from style) then it will work. The issue is that you have the height as attribute and also as a style property. So if you keep the height only in style attribute and using the jQuery's css function then it should work. Let me know if you need further help.

      – norbitrial
      Mar 28 at 22:32











    • html code is not in my control because it is created through script.

      – flash
      Mar 28 at 22:34

















    • I tried but it doesn't work.

      – flash
      Mar 28 at 21:03











    • Just edited my answer, you have the height property 2 times in your code.

      – norbitrial
      Mar 28 at 21:10











    • Do I need to paste this $("div.scribble-live").find("iframe").attr("height", "200px"); only in my script ?

      – flash
      Mar 28 at 22:23











    • I guess if you use your original solution with the css function and just remove the height attribute from the iframe html tag (not from style) then it will work. The issue is that you have the height as attribute and also as a style property. So if you keep the height only in style attribute and using the jQuery's css function then it should work. Let me know if you need further help.

      – norbitrial
      Mar 28 at 22:32











    • html code is not in my control because it is created through script.

      – flash
      Mar 28 at 22:34
















    I tried but it doesn't work.

    – flash
    Mar 28 at 21:03





    I tried but it doesn't work.

    – flash
    Mar 28 at 21:03













    Just edited my answer, you have the height property 2 times in your code.

    – norbitrial
    Mar 28 at 21:10





    Just edited my answer, you have the height property 2 times in your code.

    – norbitrial
    Mar 28 at 21:10













    Do I need to paste this $("div.scribble-live").find("iframe").attr("height", "200px"); only in my script ?

    – flash
    Mar 28 at 22:23





    Do I need to paste this $("div.scribble-live").find("iframe").attr("height", "200px"); only in my script ?

    – flash
    Mar 28 at 22:23













    I guess if you use your original solution with the css function and just remove the height attribute from the iframe html tag (not from style) then it will work. The issue is that you have the height as attribute and also as a style property. So if you keep the height only in style attribute and using the jQuery's css function then it should work. Let me know if you need further help.

    – norbitrial
    Mar 28 at 22:32





    I guess if you use your original solution with the css function and just remove the height attribute from the iframe html tag (not from style) then it will work. The issue is that you have the height as attribute and also as a style property. So if you keep the height only in style attribute and using the jQuery's css function then it should work. Let me know if you need further help.

    – norbitrial
    Mar 28 at 22:32













    html code is not in my control because it is created through script.

    – flash
    Mar 28 at 22:34





    html code is not in my control because it is created through script.

    – flash
    Mar 28 at 22:34













    0
















    For override the height prop in style attribute.



    $("div.scribble-live .scrbbl-event").height("200px"); 


    For override the iframe height attribute.



    $("div.scribble-live .scrbbl-event").attr("height", "200px");


    You have to execute both script because height prop inside style attribute will always override the iframe height attibute value.






    share|improve this answer































      0
















      For override the height prop in style attribute.



      $("div.scribble-live .scrbbl-event").height("200px"); 


      For override the iframe height attribute.



      $("div.scribble-live .scrbbl-event").attr("height", "200px");


      You have to execute both script because height prop inside style attribute will always override the iframe height attibute value.






      share|improve this answer





























        0














        0










        0









        For override the height prop in style attribute.



        $("div.scribble-live .scrbbl-event").height("200px"); 


        For override the iframe height attribute.



        $("div.scribble-live .scrbbl-event").attr("height", "200px");


        You have to execute both script because height prop inside style attribute will always override the iframe height attibute value.






        share|improve this answer















        For override the height prop in style attribute.



        $("div.scribble-live .scrbbl-event").height("200px"); 


        For override the iframe height attribute.



        $("div.scribble-live .scrbbl-event").attr("height", "200px");


        You have to execute both script because height prop inside style attribute will always override the iframe height attibute value.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 28 at 21:12

























        answered Mar 28 at 21:07









        Hassan SiddiquiHassan Siddiqui

        2,0671 gold badge8 silver badges15 bronze badges




        2,0671 gold badge8 silver badges15 bronze badges































            draft saved

            draft discarded















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406588%2fhow-to-change-iframe-height-in-javascript-jquery%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript