6. please help... what's wrong with this?


#1



I tried zoom in and refresh... it's not working


<!DOCTYPE html>
<html>
    <head>
		<title>Highlights</title>
        <link rel='stylesheet' type='text/css' href='stylesheet.css'/>
        <script type='text/javascript' src='script.js'></script>
	</head>
	<body>
        <div id="title" class="highlighted">I'm highlighted!</div>
        <div id="text">Highlight me, too!</div>
	</body>
</html>

$(document).ready(function() {
$('#text').click(function() {
$(this).addClass('highlighted');
});
});


#2

Could I see your HTML pls


#4

Your code works fine on my side.. When the preview pops up are you clicking on the text ?


#5

yes.. it's not working


#6

Try switching browsers, what error are you getting ?


#7

it's not working also...


#8

Oops, try again. It looks like your #text doesn't have the class .highlighted. Check the Hint if you need help!


#9

I have tried your code on another browser and account no error's


#10

please help me


#11

it suddenly worked... thank you man!!!


#12

See one you press save and submit you need to click on the #text, which is your div wait a few seconds see it get highlighted then close preview and you will manage to pass


#13