Radio Button On Click Submit Input
How can i make when i chose a radio button On or Off to submit input id='kot' ?
Solution 2:
Either you can make a form out of this and do something explained here:
W3Schools on form submitting or you can make a submit function via ajax:
$.ajax({
url: 'MyURLtoReceivePost',
type: 'POST',
cache : false,
data : data,
contentType: 'application/x-www-form-urlencoded; charset=utf-8',
success: function(response) {
console.log(response);
},
error: function() {
console.log("error");
}
});
In which you could just include your own data {parameter_name : value, parameter_name2 : value2} The information you can easily find in the jquery API
Solution 3:
$( "#radiobuttonsondazh_0" ).click(function() {
$( "#kot" ).submit();
});
Post a Comment for "Radio Button On Click Submit Input"