jquery finds $ ("Div[id]") based on the Name property and selects all div element $ ("Input[name= ' keleyicom") with ID attributes to select all the input elements of the Name property equal to ' keleyicom ' $ (" Input[name!= ' keleyicom '] Select all the name attributes that are not equal to ' keleyicom ' ("input[name^= ' keleyi ']") to select all the "Keleyi" The initial INPUT element $ ("input[name$= ' keleyi ')") selects all of the name attributes with an INPUT element ending with ' keleyi ' ("input[name*= ' keleyi ')")
Select all of the name attributes containing the ' keleyi ' INPUT element $ ("input[id][name$= ' keleyi ')" To use multiple properties for the federated selection, which is to get all elements that have the id attribute and then the attribute ends at Keleyi Value based on name: $ ("input[name= ' mobile ']"). Val () is based on the ID: $ ("#mobile_reg_form"). html () takes a value based on name traversal: $ ("Input[name= ' m
Obile ']). each (function () {Alert ($ (this). Val ()); Remove input from form: <script type= "Text/javascript" language= "JavaScript" charset= "UTF-8" > $ (document). Re
Ady (function () {var a=$ ("form input");
$.each (A, function (name,object) {alert (name+ ":" +$ (Object). val ());
}
);
}); </script> Get Value (multiple cases): $ ("input[name= ' mobile ']") [0].value $ ("Input[name= ' mobile ']"). Got (1). VALue-----jquery Add a Delete style--------add a style to a label: $ ("#id"). AddClass ("style");
Deletes the style of a label: $ ("#id"). Removeclass ("style"); Note: the "#id" ID is corresponding to the label Id,style is the corresponding CSS style name gets the radio label selected to obtain the value $ ("Input[name= ' xxxx ']:checked"). Val ();