get value of radio button jquery

radio button value in jquery

<!DOCTYPE html>
    <title>How to get selected radio button value in Jquery? -</title>
    <script src="" type="text/javascript"></script>
<input type="radio" name="sex" class="sex" value="male"> Male
<input type="radio" name="sex" class="sex" value="female"> Female
<button>Click to redirect</button>
<script type="text/javascript">
        var selValue = $("input[type='radio']:checked").val();

Also Read This ๐Ÿ‘‰   Vue JS Lightweight Trumbowyg WYSIWYG editor component