Manipulating input date

Asked

Viewed 111 times

0

I have a input of the kind date, i would like to manipulate this input, because when it runs on iOS(phonegap app) it becomes a combo, so when I run an event of onChange, there would be some way to validate if there was the change and which one it stopped, instead of "listening" to each value exchange and performing my function for each exchange?

1 answer

1


Ola may have a simpler shape, but this one might work. You can add and remove a class to see if the user has played it or not.

  function verificarFuncao(){

      $('#input').toggleClass('clicado');

      if(('#input').hasClass('clicado')){
             console.log('foi clicado');
      }      
  }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.