I hope you can help me with a js-php Tutorial.

Source: Internet
Author: User
A js question. I hope you can help me find a layer called & lt; divclass & quot; demo & quot; & gt;. he wants to use js to put class & quot; demo & quot; replace it with id & quot; demo & quot; But varstr & quot; how can I write it here? ------ Solution -------------------- first find the corresponding js problem and hope you can help
I have a layer called



He wants to use js to replace class = "demo" with id = "demo"

But var str = "" How can I write it here?

------ Solution --------------------
Find the object, obj. id = 'demo'; obj. className = '';
------ Solution --------------------
You already have an id, right?

?
To change

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.