Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8807355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:20:57+00:00 2026-06-14T02:20:57+00:00

why this is not working? <script> $(‘#draggable3’).load(function() { alert($(#draggable3).width()); $(#containment-wrapper).width() = $(#draggable3).width() * 1.3;

  • 0

why this is not working?

<script>    
$('#draggable3').load(function() {
 alert($("#draggable3").width());
 $("#containment-wrapper").width() = $("#draggable3").width() * 1.3;
 $("#containment-wrapper").height() = $("#draggable3").height() * 1.3;

});
</script>
<body>
<div id="containment-wrapper">
<div id="border-ornament"> 

<img id="draggable3" class="draggable ui-widget-content" src="img.jpg">

</div>
</div>
</body>

why event .load not working after image is loaded?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:20:58+00:00Added an answer on June 14, 2026 at 2:20 am

    Write width and height as –

    $("#containment-wrapper").width($("#draggable3").width() * 1.3);
    $("#containment-wrapper").height($("#draggable3").height() * 1.3);
    

    and you need to write jquery in document.ready –

    <script> 
    $(document).ready(function(){
      $('#draggable3').load(function() {
         alert($("#draggable3").width());
         $("#containment-wrapper").width($("#draggable3").width() * 1.3);
         $("#containment-wrapper").height($("#draggable3").height() * 1.3);
      });
    });   
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can someone explain me why this script is not working? <script type=text/javascript> function destroy(ID)
Code: <div id=d1>d1</div> <div id=d2>d2</div> <script> $(function(){ var j=$(); j=j.add(#d1); j=j.add(#d2); j.remove(#d1);//not this... //alert(j.length);
This is not working: <div id=draw> <script> $(document).ready( function () { var filler =
Why is this little script not working? <!DOCTYPE html> <html> <head> <meta charset=UTF-8> <title>Insert
Why is this not working? $(document).ready(function(){ var content = '<a href=http://example.com/index.php><b>Some text!</b></a> - <a
All my js scripts are working, but this is not working $(img).each(function() { if
Why is this not working? <div class=videocontainer id='mediaspace-55'></div> <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js?ver=3.0.1'></script> <script type='text/javascript'><!-- var
i create this form for strip <script></script> tags but this form not working please
Why is this not working $(this).parents(tr).find(td:eq(2)).html() I cant seam to get the text getthis
So why is this not working? I'm creating a regex that will match a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.