Is there a way to store formatted data using HTML5 and retreiving it with jQuery?
<li data-title="description here">My element</li>
$('li').data('title');
I’m talking about simple line breaks and bullets perhaps.
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 may put anything inside an attribute, including HTML that can be used elsewhere – however keep in mind that the characters
<,>and"should be escaped as<,>and"respectively to ensure the parser doesn’t have any troubles with it.