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

Unable to call a function from apex for inputtext onkeyup

I have a input text field. If user changes the value there something like dialog box to inform that the value has been changed.for this i have used "onkeyup" in the inputtext as shown below 
<apex:inputText value="{!Qty}"  onkeyup="unitPriceValidation();"/>  
and this is the method that am calling .
public void unitPriceValidation(){
         System.debug('inside unitPriceValidation');
         for(jsonvalue wrapper : ProducList){
             String unitQuantity;
             String Price;
             unitQuantity = wrapper.Qty;
             Price = wrapper.UnitPrice;
             System.debug('Quanity :' +unitQuantity);
             System.debug('Price :' +Price);
 But am unable to see the debug log . I think the function is not calling .
Where is the mistake .
Hey Venkatesh,

Use action function ( to call controller's method from visualforce. You can't directly bind a listener to events to call server side method.
Check out following this link ( example.

Hope this resolves your issue.