>I'd like to write a ToggleDisplay JavaScript function. Currently I'm calling it as
>
>this.btnSaveProfile.Attributes["onclick"] = "ToggleDisplay('GridInfo','ProfileInfo');";
>
>There is no problem to write it as accepting 2 parameters. But how can I make it more generic to process any number of parameters and toggle the display?
Could you pass all the items separated by a comma into one string and then process each item at the function level?