Try $(function(){ $("div#box"). Hover(function(){ //hover on $("div#box"). Css({zIndex:'12'}); }, function(){ //hover off $("div#box").
Css({zIndex:''}); }); }); jsfiddle.net/ZtLLg.
Thanks that works perfectly. I hope it is same for attributes such as borderBottom for border-bottom? – deXter 22 hours ago.
At the beginning, I think you want $(, not $.(. At the end of the second line, I think you want another nested function: . Hover(function(){ instead of . Hover({.
As it is, you're creating an object literal, which I don't think is what you want.
$(function(){ $("div#box"). Hover(function(){ $("div#box"). Css({'z-index','12'}); }); }); It still giving syntax error on the .
Css line – deXter 22 hours ago.
Try this $(function(){ $("div#box"). Hover(function(){ $("div#box"). Css('z-index', '12'); }); }); api.jquery.com/ready/ api.jquery.com/css.
The css call shouldn't need to be changed -- it can take a map (object literal). – Joe White 22 hours ago @JoeWhite - I think it needs to be a string. Jsfiddle.Net/jvkjF/1 ({zIndex:12} works though, jsfiddle.
Net/jvkjF/2) – Jared Farrish 22 hours ago The error still persists on the 3rd line – deXter 22 hours ago Ah, yes, you're right about it needing a string (because of the hyphen in z-index). I only noticed that you had changed it from the map overload to the two-strings overload -- I missed the bit where you had also put quotes around the z-index. – Joe White 13 hours ago.
Altogether, I have just commented how to use animation and classes. $(document). Ready(function() { $('div#box').
Hover( function(){ $("div#box"). Css({zIndex:'12'}); //$(this). Find('img').
Animate({opacity: ".6"}, 300); //$(this). Find('. Caption').
Animate({top:"-85px"}, 300); //$(this).removeClass(). AddClass("someClassName"); }, function(){ $("div#box"). Css({zIndex:''}); //$(this).
Find('img'). Animate({opacity: "1.0"}, 300); //$(this). Find('.
Caption'). Animate({top:"85px"}, 100); //$(this).removeClass(). AddClass("someClassName"); } ); }).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.