+ Start a Discussion
devfredevfre 

Need to Prevent cursor Movement

Hi,

 

  I'm having a picklist field which is associated with the onchange action support event. whenever i changes the picklist value, the cursor goes to some other field. How to prevent that.

 

My code:

 

<apex:inputField value="{!picklistfield}" style="width:220px;">
                            <apex:actionSupport event="onchange" action="{!method}" rerender="Section"/>
                            </apex:inputfield>

 

Pls suggest as this is urgent

LakshmanLakshman

can you confirm the return type of method named "method", if its PageReference try changing it to void.

 

Let me know if it helps

 

Regards,

Lakshman