Answers for "change checked status of radio button on the value"

5

change on radio button

$('input[type=radio][name=bedStatus]').change(function() {
    if (this.value == 'allot') {
        alert("Allot Thai Gayo Bhai");
    }
    else if (this.value == 'transfer') {
        alert("Transfer Thai Gayo");
    }
});
Posted by: Guest on April-30-2020
0

radio checked on start

<!--HTML solution-->
<input type="radio" checked/>
<!--XHTML solution-->
<input type="radio" checked="checked" />
Posted by: Guest on August-27-2021

Code answers related to "change checked status of radio button on the value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language