11. Get Yourself In


What is wrong here, pls?

$(document).ready(function() {
$('div').mouseenter(function() {
$('div').fadeTo('fast', 1);

they tell me that I didn't set div's opacity to 1.

11. Get Yourself In

What lesson is this ?

You can try changing 'div' to this


Sorry, I don't understand. What lesson? It is exactly like the title says.
Should I change "div" with what?


'div' to this

$(this).fadeTo('fast', 1);

Yes title of lesson or just send me link if easier



I tried to change with this, but it doesn't work


sorry your first code was correct, this you learn later on in the course..
Reset the lesson and paste in again and try or refresh your page. Once you press save and submit when the preview opens full screen make sure to click on the div and wait two seconds :slight_smile: You should pass


thanks, Zainab, but it doesn't work


Really odd works for me

Did you try refresh ?
Reset lesson and paste in ?
When preview pops up you need to hold your mouse over div for 2 seconds

  1. yep
  2. yep
  3. yep
    I try in another browser.


do that and let me know..
Send me a screen shot if you still get error


reset code and then rewrite your code like this:

$(document).ready(function() {
$('div').mouseenter(function() {
$('div').fadeTo('fast', 1);


tbh, its exactly, what you did at first. Maybe you just need to refresh your browser


error both in Chromium and Mozilla


Can I see your HTML code.. Thanks


		<title>Button Magic</title>
        <link rel='stylesheet' type='text/css' href='stylesheet.css'/>
     <div><br/><strong>Click Me!</strong></div>   


Omg here's why you getting error.. Your jQuery document is not linked to your HTML..

*Don't forget you use script tags to link jQuery


Could you please give us the code in your stylesheet.css file...??


div {
height: 60px;
width: 100px;
border-radius: 5px;
background-color: #69D2E7;
text-align: center;
color: #FFFFFF;
font-family: Verdana, Arial, Sans-Serif;
opacity: 0.5;


How, Zainab? I thought they are linked by <link rel='stylesheet' type='text/css' href='stylesheet.css'/>


That links in your CSS

<script src="script.js"></script>

^this is how you link in jQuery