Doubt - Javascript

Asked

Viewed 34 times

2

I need to take the value of the text box and put it into a global variable. How do I do this?

  • 1

    Broad question D+. If the value is picked up through a function, simply do not declare the variable that it becomes global.

  • Tried so? variavel = $('#idDaCaixaDeTexto').val()

No answers

Browser other questions tagged

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