Answers for "when i enter a value in input that value should be updated in p tag using jquery"

0

when i enter a value in input that value should be updated in p tag using jquery

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>val demo</title>
  <script src="https://code.jquery.com/jquery-3.5.0.js"></script>
</head>
<body>
 
<p>Type something and then click or tab out of the input.</p>
<input type="text" value="type something">
 
<script>
$( "input" ).on( "blur", function() {
  $( this ).val(function( i, val ) {
    return val();
  });
});
</script>
 
</body>
</html>
Posted by: Guest on May-14-2021

Code answers related to "when i enter a value in input that value should be updated in p tag using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language