Of course, it can also be obtained based on the id attribute or other attributes, such as $("input[id=id1]" ).css("color",red); In jquery, when using $("input[name='metaId']").val() you cannot directly get the value of the selected radio, you just get the radio The first value of the label, this may be related to jquery using the xpath language for search, and we usually want to get the value of the selected radio. There are the following methods: 1, use $(”input[name= 'metaId']:checked").val() to obtain //name represents the name attribute name in radio 2, use $(":radio:checked").val() to obtain //limit the page to only one set of radios Label