radio button onchange jquery
$('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");
}
});$('#radio-button-id').click(function() {
if($('#radio-button-id').is(':checked'))
{
//input where you put a value
$('#program').val("radio-button-text");
}
});
Also in JavaScript:
- viewdata array mvc razor javascript
- user defined exceptions in js
- ORDS GET json case sensitive data keys
- rounding off numbers javascript
- javascript get last element in array
- wait for page load js
- remove all options from select jquery
- axios react
- javascript yield
- how to test if string is a valid json string c#
- test if is undefined javascript
- what is a javascript method
- how to disable menu bar in browser using javascript
- copy an object with object.assign
- what is eval in js
- vue rails turbolink don't load
- change windlow location relitave to current one
- jsx if block
- get current week number javascript
- vue resources post
- javascript get array size
- express get host url
- how to reset interval javascript
- swal2 with select2