+ 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..