How can I add a class to a prepended text, without adding it to the entire label. So far I have this:
$('form label').prepend('*');
$(this).addClass('star');
But I know ‘this’ refers to the label. I would like to add a class to every asterisk.
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.
You have to have a tag in order to add an attribute such as class:
or