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
SFDC coderSFDC coder 

difference between selectOption and selectOptions tag in visualforce

Best Answer chosen by SFDC coder
sachin_dreamoncloudsachin_dreamoncloud
As name indicates selectoptions is plural, which means it will have a list of values and select option is just single value which is string. 
For exmpl:
<apex:selectList >
     <apex:selectOption value={!value1}/>  <!--if you are putting it as a separate values -->    
     <apex:selectOption value={!value2}/>
     <apex:selectOption value={!value3}/>
</apex:selectList>


<apex:selectOptions value={!ListofValues}/>  <!--if you are putting it in a list<selectOption> -->

All Answers

sachin_dreamoncloudsachin_dreamoncloud
As name indicates selectoptions is plural, which means it will have a list of values and select option is just single value which is string. 
For exmpl:
<apex:selectList >
     <apex:selectOption value={!value1}/>  <!--if you are putting it as a separate values -->    
     <apex:selectOption value={!value2}/>
     <apex:selectOption value={!value3}/>
</apex:selectList>


<apex:selectOptions value={!ListofValues}/>  <!--if you are putting it in a list<selectOption> -->
This was selected as the best answer
SFDC coderSFDC coder
thanks for the reply........