Home >Web Front-end >JS Tutorial >Methods for obtaining radio objects in old and new versions of juqery_jquery
New version (currently 1.3.2):
$("[name='radio_name'][checked]").val(), or $("input[name='radio_name']:checked" ).val()
Old version:
$("[@name='radio_name'][checked]").val(), or $("[@ name='radio_name']:checked").val()
The difference is that the old version has an additional @ symbol