You need to sign in to do that
Don't have an account?

Changing <apex:SelectList> with jQuery not firing actionSupport event
When a user clicks a link, jQuery updates the <apex:SelectList>. It update the selectList value, but it does not fire the onchange event. How do I get the actionSupport event to fire after the link is clicked?
Thanks in advance.
<script> $('#HyperlinkContainer').on("click","a", function (e) { var option = $(this).attr("data-option"); $("select[id$='BudgetSelect']").val(option); </script> <div id="HyperlinkContainer"> <apex:repeat value="{!Budgets}" var="budgetId"> <a data-option="{!budgetId}"></a> </apex:repeat> </div <apex:selectList size="1" id="BudgetSelect" value="{!Budget.Id}"> < apex:actionSupport event="onchange" action="{!DoNothing}" rerender="BudgetPanel" /> <apex:selectOptions value="{!budgetOptions}"/> </apex:selectList> <apex:outputPanel id="BudgetPanel" > {!selectedBudget} </apex:outputPanel>
The workaround is to use: <apex:actionFunction>.
<apex:actionFunction name="AJAXRefresh" action="{!DoNothing}" rerender="BudgetPanel" status="myStatus1"/>
and the new javacript call: AJAXRefresh();
VFP:
Apex controller:
By the way, more people would have helped you here if you have posted more code. I needed to fill the missing parts of your question.