What is the standard DOM equivalent for JQuery
element.append("<ul><li><a href='url'></li></ul>")?
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.
I think you have to extend the innerHTML property to do this
some explanation:
elementis a collection</a>needed as some browsers only allow valid html to be set to innerHTMLHint:
As @dontdownvoteme mentioned this will of course only target the first node of the collection
element. But as is the nature of jQuery the collection could contain more entries