Script that I am using
$(document).ready(function() { $(\'input:radio\').change(function(){ var val = $(\'input:radio:checked\').val();