function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Olivia FordeOlivia Forde 

How do I rerender two sections on the one onchange event on a visualforce page

I am doing this  
<apex:panelGroup >            
            <apex:inputCheckbox label="CA" value="{!BusUnits['CA']}" >                
            <apex:actionSupport event="onchange" rerender="BU_Options"/>                
        </apex:inputCheckbox>                
        <apex:outputLabel value="CA"/>              
      </apex:panelGroup>


 and I want to do this  


 <apex:panelGroup >                  
      <apex:inputCheckbox label="CA" value="{!BusUnits['CA']}" >            
                <apex:actionSupport event="onchange" rerender="BU_Options"/>
<apex:actionSupport event="onchange" rerender="BU_Codes2"/>        
              </apex:inputCheckbox>                
        <apex:outputLabel value="CA"/>            
        </apex:panelGroup>
Best Answer chosen by Olivia Forde
James LoghryJames Loghry
The rerender attribute is comma separated.  So you you could do the following:
rerender="BU_Options,BU_Codes2"

All Answers

James LoghryJames Loghry
The rerender attribute is comma separated.  So you you could do the following:
rerender="BU_Options,BU_Codes2"
This was selected as the best answer
Olivia FordeOlivia Forde
Thanks James - thats why I love Salesforce - someone always knows the answer. I had tried that but had two sets of ""'s.

1 rerender="BU_Options,BU_Codes2" - works beautfully