Nested
Nested copied to clipboard
Change the right property dynamically
Hi all !
I am trying to change the right property dynamically but it not works fine.
The code
function fv() { if ($('#fv').css('display') == 'none') { $('#container').animate({"right":"250px"}, 700); $('#fv').show('fast'); } else { $('#container').animate({"right":"0px"}, 700); $('#fv').hide('fast'); } }
I tried the same code in another div and it works fine.
What I need to do ?