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 8226489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:47:18+00:00 2026-06-07T15:47:18+00:00

I anm new to jquery so I am learning the JQuery from w3schools.com .The

  • 0

I anm new to jquery so I am learning the JQuery from w3schools.com .The below code is from w3sch

     <!DOCTYPE html>
<html>

    <head>
        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $("button").click(function () {
                    $("#div1").height("200px");
                });
            });
        </script>
    </head>

    <body>
        <div id="div1" style="background:yellow;height:100px;width:100px">HELLO</div>
        <div style="background:yellow;height:100px;width:100px">W3SCHOOLS</div>
        <button>Click me</button>
    </body>

I saved it as some_name.htm. When I open the it in browser it is as follows:

enter image description here

but when i click on Click me there is no change in the size.

according to code and flow the height should increase

anyone knows how to get this working ??

  • 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-07T15:47:20+00:00Added an answer on June 7, 2026 at 3:47 pm

    Because you do not have jquery.js in your workspace. You need to download it and give the correct path while including it –

    In case you do not wish to download, use this instead –

    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    

    or

    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    

    I tried running your code it is working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if anyone knew how to run an m script from LabView.
For this type of data I want to do an interpolation like fit from
I am writing an HTTP proxy to serve up an M-JPEG stream from an
I'm trying to write an .m file to extract energy features from an audio
I'm trying to replicate a linear discriminant analysis output from SPSS in R, and
I see that mobile versions of websites often begin with an m. (e.g. http://m.accuweather.com
I got 1 emulator error from the latest Andriod SDK(on both Ubuntu11.10 and CentOS6.2):
Excuse my ignorance, I'm very new to Python. I'm trying to perform factor analysis
Related objects of an m:n relation can be selected with a html select element
In matlab, it is possible to execute a script (ie an m-file) and then

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.