Answers for "enter textbox value and get value in jquery"

PHP
0

enter textbox value and get value in jquery

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>val demo</title>
  <style>
  p {
    color: blue;
    margin: 8px;
  }
  </style>
  <script src="https://code.jquery.com/jquery-3.5.0.js"></script>
</head>
<body>
 
<input type="text" value="some text">
<p></p>
 
<script>
$( "input" )
  .keyup(function() {
    var value = $( this ).val();
    $( "p" ).text( value );
  })
  .keyup();
</script>
 
</body>
</html>
Posted by: Guest on May-31-2021

Code answers related to "enter textbox value and get value in jquery"

Browse Popular Code Answers by Language