<div class="codetitle"> <span><a style="CURSOR: pointer" data="17460" class="copybut" id="copybut17460" onclick="doCopy('code17460')"><u>Copy code</u></a></span> The code is as follows:</div> <div class="codebody" id="code17460"> <br><!DOCTYPE html><br><html><br> <head><br> <meta charset="UTF-8"><br> <title>Test</title><br> <script type="text/javascript" src="jQuery/ jquery-1.5.2.js"></script><br> </head><br> <script type="text/javascript"><br> $(document).ready(function( ) {<br> . 🎜> return;<br>} <br> // Control can only enter a decimal point "." <br> if (getValue.indexof ('.')! = -1 && Event.which == 46) {<br> Event.preventdefault () ;<br> return; > 57) && event.which , <br> //Losing focus is triggered #Score").bind("blur", function(event) {<br> var value = $(this).val(), reg = /.$/;<br> {<br> value = value.replace(reg, ""); });<br> script><br> <body><br> <input type="text" id="Score" /><br> </body><br></html><br><br> </div>