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