Thursday, July 21, 2011

Select Dropdownlist Selected text through Value in JQuery



function ddlSelectedValue(obj,value) {
            $(obj).each(function () {
                $('option', this).each(function () {
                    if ($(this).val() == value) {
                        $(this).attr('selected', 'selected')
                    };
                });
            });

No comments:

Post a Comment