• I have this code, but it doesnt work proprely. Why?
    Live code – http://jsfiddle.net/u9ondfp8/1/

    <div id="result"></div>
    <div id="result1"></div>
    <div class="rrr">
    <input type="radio" name="selector_" value="post_active" id="posts" onclick="dataSelect23123()">Post<br>
    <input type="radio" name="selector_" value="page_active" id="pages" onclick="dataSelect23123()" >Page
    </div>
    <br /><br />
    <div class="rrr">
    <label><input type="radio" name="selector_1" value="post_active1" id="posts1"onclick="dataSelect23124()" >Post<br></label>
    <label><input type="radio" name="selector_1" value="page_active1" id="pages1" onclick="dataSelect23124()">Page</label>
    </div>
    
    <script>
    function dataSelect23123() {
    $( "#result" ).html( $('input:checked').val() + " is checked!" );
    };
    </script>
    
    <script>
    function dataSelect23124() {
    $( "#result1" ).html( $('input:checked').val() + " is checked!" );
    };
    </script>

The topic ‘Radio buttons in plugin’ is closed to new replies.