Home > Backend Development > PHP Tutorial > The second day of getting started with jQuery &&& The end of regular expressions - making a smarty-like engine, getting started with jQuery_PHP tutorial

The second day of getting started with jQuery &&& The end of regular expressions - making a smarty-like engine, getting started with jQuery_PHP tutorial

WBOY
Release: 2016-07-12 09:05:55
Original
941 people have browsed it

The second day of getting started with jQuery&&®ular expression completion - making a smarty-like engine, getting started with jquery

Hi

Completely out of shape on Monday. . . I went to watch the game at noon. I didn’t sleep. I don’t know if I can finish the smarty at night. Come on

1. jQuery

---Filter selector (2)---

--[attribute=value]Attribute selector

As an important feature of DOM elements, attributes can also be used in selectors. Starting from this section, we will introduce selectors for obtaining elements through element attributes. The function of [attribute=value]attribute selectors is to obtain attribute names and attribute values. All elements are exactly the same, where [] is the bracket symbol used specifically for attribute selectors, the parameter attribute represents the attribute name, and the value parameter represents the attribute value.

Change the background color of the "title" attribute value to "Vegetables"



  • Eggplant
  • Banana

  • celery

  • Apple

  • Watermelon



--:text form text selector

:textThe form text selector can obtain all single-line text input box elements in the form. The single-line text input box is like a note tool without line breaks and is very widely used.

Modify the background color of multiple single-line input box elements













--:radio button selector

Radio buttons in a form are often used to select only one of multiple items of data, and using the :radio selector can easily obtain the all radio button elements in the form.

Set the radio button in the form to be disabled








< br />




--:checkbox checkbox selector

Check boxes in forms are often used to select multiple data. Use the :checkbox selector to quickly locate and obtain the check box elements in the form.

Set all checkboxes in the form to disabled












Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template