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
Dream_weaverDream_weaver 

How to Sort DropDown list at VF page level..using JavaScript?

I have the following VF page...

 

<apex:pageBlock title="SearchArticle" id="SearchArticle">

  <apex:outputLabel value="MagaZine" for="MagaZine"/>
                    <apex:selectList value="{!selectedMagaZine}" multiselect="false" size="1" id="selecMagaZine">
                        <apex:selectOptions value="{!soMagaZine}"/>
                    </apex:selectList>

   </apex:pageBlock>

 

Where from Controller I am getting the Dropdown List...Requirement doesnot allow me to change controller....

I have to sort the dropdown values in VF page level using Jscipt on Window.Onload...Please help me to write the JS.....

Raj.ax1558Raj.ax1558

Using  JavaScript Remoting  you can perform this -

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_js_remoting.htm

 

 

Thank you,

 

 

Please mark this as solution for others to get it easily.

Dream_weaverDream_weaver

I am pretty mush new to SF...not able to get anything from the above link as it requires controller modification....Any example would be a great help..