we have this classnames
.lightbox620
.lightbox400
..
.lightbox200
That we apply to the body page and it determines its width…
so i need to remove this class,
how can i $('body').removeClass('ligbox{any}') ???
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.
If that’s the only class that you set to
<body>, then remove all the classesIf not, go the plain DOM way, use a regular expression to strip the class name out of the string.
The jQuery way is a bit more complicated here: