Find Radcombobox values in jquery

 <script type="text/javascript">
            $(document).ready(function () {

                $("#<%=cboToEdition.ClientID%>").change(function () {
                    var cboToval = $('#<%= cboToEdition.ClientID %> option:selected').val();
                    var cboFromval = $('#<%= cboFromEdition.ClientID %> option:selected').val();
                    //alert(cboToval + "&" + cboFromval);
                    if (cboFromval > cboToval) {
                        alert("From value shouldn't be greaterthan To value");
                        //                    } else {
                        //                        alert("hello2");
                    }
                });
            }); </script>

Comments