JQuery Radio Dynamic Control Solutions Solutions

Gender Selection Men and women are usually selected using RADIO to select Radio based on information when modifying customer information.

The initial code is

Console.log ($ (‘): Radio [value =’ + data [2] + ‘]’). ATTR (‘Checked’));
 However, there is a problem after the test is selected in the future.   Later, the information was originally amended by jQuery's version of the problem. Different versions were modified to ATTR 

** If your jQuery library version is 1.6 or less, using an Attr method If your jQuery library is 1.6 (including 1.6) or more, use the prop method ** $ (‘: radio [value =’ + data [2] + ‘). Prop ( ‘Checked’, true);

This is completely solved. The test is completely normal.
The above-mentioned JQuery Radio dynamic control selection failed solution is the total content of Xiaobian sharing to everyone, I hope I can give you a reference, I hope everyone will support Tumi Cloud.
© Copyright Notice
Just support it if you like
comment Grab the couch

Please log in to comment