Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
- </head>
- <body>
- <input type="text" id="livebox" >
- </body>
- <script>
- $(document).ready(function(){
- $("#livebox").on("input",function(e){
- text =$("#livebox").val();
- console.log(text)
- });
- })
- var input = document.getElementById("livebox");
- console.log(input)
- </script>
- </html>
Add Comment
Please, Sign In to add comment