Password Selector Example
RUN
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Học lập trình miễn phí tại freetuts.net</title> <script src="https://freetuts.net/cnd/js/jquery/jquery-3.2.1.min.js"></script> <style> textarea { height: 45px; } </style> </head> <body> <h1>Học lập trình miễn phí tại freetuts.net</h1> <form> button: <input type="button" value="Input Button"> <hr> checkbox:<input type="checkbox"> <hr> file:<input type="file"> <hr> hidden:<input type="hidden"> <hr> image:<input type="image"> <hr> password:<input type="password"> <hr> radio:<input type="radio"> <hr> reset:<input type="reset"> <hr> submit:<input type="submit"> <hr> text:<input type="text"> <hr> select: <select> <option>Option</option> </select> <hr> textarea:<textarea></textarea> <hr> Button:<button>Button</button> </form> <button onclick="myFunction()">Click vào đây để xem kết quả</button> <script> function myFunction(){ $( "input:password" ).css( "background", "red"); } </script> </body> </html>
PHÓNG TO