daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Apr 21st, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <apex:inputField value="{!FinancialAssCont.Down_Payment__c}" styleClass="form-control downpaymentAmount" onblur="checkValidQuantity(event);" />
  2.    
  3. <apex:inputField value="{!FinancialAssCont.Initial_Date__c}" styleClass="form-control calendar_icon inital-date cal-text" onblur="copyInitialDate(this);" />
  4.    
  5. function checkValidQuantity(evt){
  6.    if(inValidQuantity){
  7.        showJqueryPopup();
  8.    }
  9.  
  10. }
  11.    
  12. <apex:page>
  13. <script>function setFocusOnLoad() {}</script>
  14. <!-- further content -->
  15. </apex:page>
  16.    
  17. <apex:inputField value="{!FinancialAssCont.Down_Payment__c}" styleClass="form-control downpaymentAmount" onblur="checkValidQuantity(event);" onfocus="hideCalander();" />
  18.  
  19. function hideCalander(){
  20.      jQuery('#datePicker').css("display","none");
  21. }
  22.    
  23. function checkValidQuantity(evt){
  24.    if(inValidQuantity){
  25.        showJqueryPopup();
  26.  
  27.        //Set focus to numeric text field
  28.        jQuery('.downpaymentAmount').focus(); // This will hide the calander
  29.  
  30.       //Set the focus back to popup button
  31.       jQuery('.ui-button').focus();
  32.  
  33.    }
  34.  
  35. }
RAW Paste Data
Top