เนื้อหานี้อัพเดท จากอันเก่า
ดาวน์โหลดตัวอย่างได้ที่
ตัวอย่าง
พิมพ์รหัสผ่าน แล้วจะมีระดับความปลอดภัยของรหัสผ่านแสดงขึ้น
โค้ดตัวอย่าง
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-8" > < title >Document</ title > </ head > < body > < input type = "text" name = "password" id = "password" > < br > < span id = "pass_status" ></ span > < script src = "//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" ></ script > < script type = "text/javascript" > $(function(){ $(document.body).on("keyup","#password",function(){ $.get("get.php",{ password:$(this).val() },function(data){ $("#pass_status").html(data); }); }); }); </ script > </ body > </ html > |