I’d like to add into a css property like this
[css]
.someclass some
{
///
}
[jquery]
$('.someclass some').css('behavior','url(path/something/someclass.htc)');
This return an error message as "TypeError:Object Expected"
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 this:
just copying your code for behavior property – you know it should look like this….
This code will add the css property to the selector in your DOM , if you want to actually change the css file – you can not do that , but you can do this
the class
.behavioryou put in your css – this will have extra properties , and you dynamically add this class to the elements that you want to have it