The form element selector of the jQuery selector

The example of this article shared the form element selector for everyone, for the reference, the specific content is as follows

jQuery选择器之表单元素选择器详解

       INPUT {Display: block; margin: 10px; padding: 10px;}       Children Filter Selector   Input, Text, Password, Radio, Checkbox 

Submit, Image, Reset, Button, File

/ / Find all INPUT, TEXTAREA, SELECT, and Button Elements / / / / / / / / Basically select all form controls $ (": input"). CSS ("Border", "1px groove red"); // Match the INPUT element $ (":": Text "). CSS (" Background "," # a2cd5a "); // Match all INPUT type INPUT Elements $ (": Pa"). CSS (" Background "," Yellow "); / / Match the radio button in all input elements, and select $ (": radio "). Attr ('Checked', ' True ');
/ / Match the check button in all INPUT elements and select $ (": checkbox"). Attr (' Checked ',' True '); / / Match the commit button in all INPUT elements, modify the background color $ (": submit"). CSS ("Background", "# c6e2ff"); // Match the image type in all INPUT elements Elements, modify background colors $ (": image"). CSS ("Background", "# f4a460"); // Match Elements of all INPUT elements $ (": button" ) .CSS ("Background", "RED"); / / Match Elements $ (": file") in all INPUT elements. CSS ("Background", "# CD1076") The above is all the contents of this article, I hope to help everyone's learning. I also hope that everyone will support Tumi Clouds.
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment