skip to Main Content

i have to click two times in my label to do the correct thing that i want.
the first time that i click works, then when i click it show something different

<div class='form-row'>
  <div class='col-md-12'>
    <label class='labeldata' style='cursor: pointer;'>" + settaData(i.periodi) + "</label>
  </div>
</div>
$('.labeldata').click(async function(e){
    sessionStorage.scambio= e.target.innerText; // get the value
    sessionStorage.crx= 11111; // run the routine of my pgm
    
    Bottone('B1001');
})

2

Answers


  1. Chosen as BEST ANSWER

    ok it was my problem sorry, the Jquery code is correct


  2. 
    $(document).on('click', '.labeldata', async function(e) {
      sessionStorage.scambio = e.target.innerText;
      sessionStorage.crx = 11111;
      Bottone('B1001');
    });
    
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search