Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

93
Views
¿Es posible deshabilitar otras casillas de verificación en setimeout si la casilla de verificación específica está marcada en apex-repeat?

Tengo un programa que puede actualizar valores múltiples, quería dar settimeout 2 segundos después de hacer clic en la casilla de verificación específica. cuando settimeout se está cargando, la otra casilla de verificación en apex-repeat está deshabilitada y cuando settimeout finaliza, la otra casilla de verificación se habilitará nuevamente.

Lo intenté de muchas maneras y todavía no lo descubro. ¿Es posible?

este es mi código ahora:

 <apex:repeat value="{!dataSalesPlan}" var="i"> <apex:inputCheckbox styleClass="checkOpex{!i.spd.ID} checkOpex {!i.spd.ID}" value=" {!i.opex}"> <apex:actionSupport event="onchange" action="{!updateOpex}" reRender=""> <apex:param name="salesPlanIndex" value="{!i.index}" assignTo="{!salesPlanIndex}"/> </apex:actionSupport> </apex:inputCheckbox> </apex:repeat>

JavaScript:

 <script type="text/javascript"> document.documentElement.style.setProperty('--screen-width', (screen.width - 120)+'px'); j$ = jQuery.noConflict(); j$(document).ready(function() { j$(document).on('change', '.checkOpex', function(e) { var self = $(this); $(this).prop('disabled', true); setTimeout(function() { $(self).removeAttr('disabled'); alert("Succesfully Set Data"); }, 2000); }); });

Ilustración ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!