Home >Web Front-end >JS Tutorial >jQuery's method of obtaining selected content and setting element attributes_jquery
Get selected selection:
$("#id option:selected").val();
Custom radio:
$("input[name=sex][value="+data.sex+"]").attr("checked",true);
Get radio:
$("input[name='sex']:checked").val()
Set input cannot be edited:
$("#cashNum").attr("disabled","disabled");