Home > Article > Web Front-end > About js monitoring input median value changes in real time (graphic tutorial)
The following is the js I compiled for you to monitor the changes in the input median value in real time. Interested students can take a look. aab34cdd5f497851e3d3dc5f70ede385
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>RunJS</title> <script id="jquery_183" type="text/javascript" class="library" src="/js/sandbox/jquery/jquery-1.8.3.min.js"></script> </head> <body> <h1 > 实时监测input中值的变化 </h1> <input type="text" id="username" autoComplete='off'> <div id="result"></div> </body> </html>
$(function(){ $('#username').bind('input propertychange', function() { $('#result').html($(this).val().length + ' characters'); }); })
What are the ways to encrypt passwords in nodejs
js Detailed explanation on determining whether the client can access the Internet
What are the ways to encrypt passwords in nodejs
The above is the detailed content of About js monitoring input median value changes in real time (graphic tutorial). For more information, please follow other related articles on the PHP Chinese website!