Created
January 23, 2012 01:27
-
-
Save alirobe/590b3e1f0092333fb95e to your computer and use it in GitHub Desktop.
sharepoint form checkbox show/hide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//<script src="/hosted/Style%20Library/jquery-1.7.1.min.js" type="text/javascript"></script><script type="text/javascript"> | |
//jQuery.noConflict(); | |
jQuery(function(){ | |
var cfg= { | |
'CRM':['CRM Access'], | |
'SharePoint':['SharePoint Access'], | |
'GP':['GP Security Role','GP Access Level','GP Company Name'], | |
'Replace Existing User':['Existing user email address'] | |
} | |
for(var i in cfg) { | |
var $el = jQuery('.ms-RadioText[title="'+i+'"]'); | |
$el.change(function(){ | |
var myCfg=cfg[jQuery(this).attr('title')]; | |
for(var i in myCfg){ | |
jQuery('.ms-standardheader::contains("'+myCfg[i]+'")') | |
.parent() | |
.parent() | |
.toggle(); | |
} | |
}); | |
$el.change(); | |
} | |
// })</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment