How to check the attributes of html elements and corresponding dom elements and dom attributes of html elements

Source: Internet
Author: User

How to check the attributes of html elements and corresponding dom elements and dom attributes of html elements

The w3shool document contains the corresponding content.

2. How to set and obtain html elements in jquery
Set and retrieve plain text of element nodes in text ()
Set and obtain the innerHTML attributes of element nodes in html ().
Val () sets and obtains the value of the form element. If there is no value attribute, you can obtain text such as: option
Attr () is used to set and obtain the attribute values defined by the html element.
Set and retrieve styles with css ()

3. html5 Custom Attributes
Get custom attributes using jquery

CreateWebUrl ('category ', array ('act' => "mutdelete")}> Delete$ ('. Mutdelete'). click (function () {var url = $ (this). data ('href ');

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.