Skipping if condition in jquery
<p>I am using following code snippter on button click event. Issue is if I don't select radio button than it gives me alert undefined but if I use same condition that is if I equate value of same in if condition than it escape condition.
From below code I am not getting <code>alert("Select action to perform.");</code> as this if condition is skipped.</p>

<pre><code> $('#actionbutton').click(function(){ 

        alert('HI SANKALP');
        var manageradiorel = $('input[name="managerelradio"]:checked').val();
        var parentid = &lt;?php echo $parentid; ?&gt;;
        var childid = $('#managechild').val();
        var sgid = &lt;? echo $_GET["s"]; ?&gt;;
        var relationship = $('#childsgrel').val();
        alert(manageradiorel);
        if(manageradiorel == "undefined"){
            alert("Select action to perform.");
            return false;
            }
        alert("Next time");

     });
</code></pre>
