How can I call prepend on a div‘s id and class? I was thinking I can do something like this:
$('#id .class').prepend('Text');
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 you’re trying to select a single element with an id of
IDUse a comma to separate the selectors:If you’re trying to select a div with an id of
IDand class ofclassthen remove the space between the two:Although this second method is rather redundant since IDs need to be unique to a single element in the document.