I have a div in left side, I want once click on div slide (move) it to center,
My code:
$('#operator_' + opids[i]).show("slide", { direction: "right" }, 1000);
but it does not work.
can anyone give me jquery code to achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try using
animate():This will make the object identified by
$('#operator_' + opids[i])move to the right (because the leftMargin is increased) by 200px. The 2nd parameter is the speed. The first parameter can take any CSS values.More info about jQuery animate().