Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  
  <h1>Zumba</h1>
  
<input type="text" value="Oq o user digitou">
  
  
  <script src="https://code.jquery.com/jquery-1.9.1.js"></script>
</body>
</html>
 
var titulo = $("h1").text();
console.log(titulo);
var valorDoCampo = $("input").text();
console.log(valorDoCampo);
//agora troca o text() do input por val() e veja o console
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers