I know we could get the node name by using nodeName, but is it possible to set the nodeName using jquery as well? basically i wanted to chnage the casing of node name from uppercase to lowercase.
Thanks a lot
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 can’t change the nodeName, but you could create a new node with the different name, copy attributes across, then replace one with the other.
jQuery makes it hard to distinguish between attributes and properties, you may be able to use the IE proprietary outerHTML property (which is supported in a few other browsers) and string manipulation, but that won’t work on the web in general.
If there are many such nodes, then a global replace of “