How to get the value of selected radio button in jQuery

You can simply use the jQuery :checked the selector with the combination of the val() method to get the selected radio value inside a group. Let’s try out with the following example to understand how it works: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>jQuery Get Selected Radio Button Value</title> <script src=”https://code.jquery.com/jquery-1.12.4.min.js”></script> <script> $(document).ready(function(){ $(“input[type=’button’]”).click(function(){ … Read more