Okay you know when you create a list in Sharepoint and say in that list you categorize the items in that list where it creates the Expand/collapse buttons. I want to know how in Javascript I can make a function where I know which category the user clicks. Let's say I have these 3 categories Blue, Pink, Yellow. If a person clicks blue I want to write something and if a person clicks pink I want to write something different. Thank for your help in advance.