jQuery allows easy access to multiple objects sports direct is possible, read or set the values of form object to be part of a little hazy. It's slightly different for each form object behavior that is because it, it's only a simple form specifying the ID directly access'm just very easy and fast. However, occurs in the same form, or multiple dynamically generated or if the headaches can be a pain. Fortunately, jQuery is very easy access to this help. Right [] expression, a simple expression of support for the query to get the desired results, which it used to select the form object methods.
</ Form> The Year Gets the value of the text field can be written as follows when you want. $ ("# sports direct TestForm> input [name = 'TestText']"). Val (); Note that the # TestForm> next to a sub-object of an object means that quite a few, but not even a harmless problem. But readability is reduced, the only spaces to separate wrote. INPUT on the basis of the name attribute of the object, the string to get the correct object hers. Similarly, when the radio to get the value of an object can be created as follows. $ ("# TestForm> input: radio [name =" TestRadio "]: checked"). Val () ;/ / Result: 1 $ ("# TestForm> sports direct input [name =" TestRadio "]: sports direct checked"). Val () ;/ / Results: The results of both of the above, you can get one. Just [name = 'TestRadio'] It's because you wrote. INPUT object, the object's name property to bring suit, and the value of the currently sports direct checked radio button is returned. (Radio button in the group by the same name is specified.) Just how useful sports direct it would do as well? I think there may be God to. No, that is just another sign of the string to find the matching object can be obtained.
</ Form> When this form is to be configured must be a very himdeunge'm not managing multiple forms. If, TypeA when importing an item that can easily be imported by completing the following. $ ("# TestForm> sports direct input [name ^ = 'TypeA']"); TypeA by the name attribute of the objects returned by the query is started. name ^ = a ^ symbol "- beginning with the" sense of the character. Conversely, if the name ends with any character name $ = as you like. $ ("# sports direct TestForm> input [name $ = 'Desc_1']"); This query returns two Desc_1 ending with the object. Usefulness is only a beginning and an end, but maybe not much. That contains all the characters are looking for what the name * = is used when you want to. $ ("# TestForm> input [name * = 'Desc']"); So Desc character name property returns the object into four. Similarly, name! = Of that, you can only select an object instead of a string. $ ("# TestForm> input [name! = 'TypeA']"); Furthermore, this expression can be written in the name attribute is not only the object's properties can be used for both. $ ("Form [id = 'TestForm']"); Therefore, this is also possible hers. (Just as there is no meaning ... ;) developers can directly sports direct apply all the attributes set, so a simple query, you can easily find the desired object. :)
'JQuery' Category copying other articles JSON object / clone (0) 2013/05/24 Jquery select Add or Remove (0) 2012/11/14 Jquery Selector examples (0) 2012/11/08 Jay query check box (0 ) 2012/11/06 Date Time value calculations (0) 2012/07/24 Jquery accordion-type (0) 27 June 2012
EpoNg
Oracle (1)
Recent Comment sports direct Here's our favorite London ... WilliamSr 08:55 Good quality polarized sungl ... optiopvob 07/13 JJKKJJHUUU888 sports direct [url = http:// ... zopktvpqwkgb 07/12 c4123@naver.com trying to study ... please deuryeoyo ..! 9.7 Ieft clean it well .. heh heh 19.06
Tistory
Login
No comments:
Post a Comment