dropdownlist issue

dropdownlist issue

 $(document).ready(function () {

        $("#" + btnCancel).click(function () {
            
            var o ="--Select--";  // For Example

             $("#" + ddlEntityName + " option:contains('" + o + "')").attr('selected', 'selected');
            return false;
        });
});


but not working in mozilla