I'm trying to adjust the onclick:() function so it selects more categories from my database but it doesn't work out! Hopefully someone can help me with this problem:
Script original, only checks the first category:
<input type="checkbox" id="catbox" onclick="boxclick(this,'cat1')"/>
I already tried more events in the onclick function, but this only works out for the first 2 events:
<input type="checkbox" id="catbox" onclick="boxclick(this,'cat1');boxclick(this,'cat2');boxclick(this,'cat3')"/>
I also have tried this, but it doesn't work out:
<input type="checkbox" id="catbox" onclick="boxclick(this,'cat1','cat2',cat3')"/>
Hopefully someone knows the answer!