Adding and removing classes


#1

$(document).ready(function(){
$('#text').click(function(){
$(this).addClass('highlighted');
});
});
i dont know whats wrong with this code ...stuck here so anyone can help me plzzzzz... and the error message is ,,,,,,

Oops, try again. Please follow the instructions on the Full Preview page to test your code.


#2

The error, "Please follow the instructions on the Full Preview page" is telling you that you didn't follow all of the instructions provided on the bottom left, next to the back to the editor button.


#3

Allow for some time lag. Enter the full screen page, pause a moment, click inside the page, pause, now follow the instructions in the statuse bar at bottom. Pause, wait for next instruction. Follow it and pause, then return to the editor.


#4

thank you so much for the advice you gave me it helped a lot and the code worked too ,,,, thank you @rhyscrypto:grin:


#5

thank you so much for the advice you gave me it helped a lot and the code worked too ,,,, thank you @mtf:grin:


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.