animate not working-JQuery -


am doing wrong simple animate not work?

fiddle

$('#my_btn').click(function(){     alert('clicked');   $("#my_txt").animate({left:'350px'}); }); 

thanks

an element must have position other default static top , left have effect

#my_txt {position: relative; } 

fiddle

preferably have initial left style set well

#my_txt {     position: relative;      left : 0; } 

Comments

Popular posts from this blog

winapi - How to get a user input on a MessageBox on C++? -

parcelable - Unmarshalling unknown type code exception while reading parcel values in Android 4.4+ -