Friday, July 22, 2011

JQuery for hiding 'table row'/'Control' on listbox selected value

Replace 'DOLLAR' with '$'

DOLLAR(document).ready(function ()
 {
 DOLLAR("#ROWYesNo").hide();
    DOLLAR("#[idDOLLAR=_radioListYesNo]").click(function () {

        var rblSelectedValue = DOLLAR('#[idDOLLAR=_radioListYesNo] input:checked').val()
        if (rblSelectedValue == "Yes") {
            DOLLAR("#ROWYesNo").hide();
        }
        if (rblSelectedValue == "No") {
            DOLLAR("#ROWYesNo").show();
            DOLLAR('input[type="text"]').each(function () { DOLLAR(this).attr('readonly', 'readonly'); });
        }
    });
});
});

No comments:

Post a Comment

SharePoint document metadata not updating

I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...