Thursday, June 12, 2014

Adding/Removing items to/from radio button list in sharepoint


 we can add/Remove Item to/from radio button list.
1.put sharepoint control in the div
2.check required option value to hide
3.write bellow in document.ready function


$("#divCategory").find("input[type='radio']").each(function() {
             var res=$(this).closest('span').attr("title");
             if(res=='Other')
             {
               $('span.ms-RadioText[title="Other"]').css('display', 'none');                   
             }
          });

No comments:

Post a Comment