Sublime Text
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <script> $(document).ready(function(){ $("input[type='checkbox']:enabled").wrap("<span style='border:5px solid red'>"); }); </script> </head> <body> <input type="radio" name="gioitinh" value="nam" disabled> Nam <hr> <input type="radio" name="gioitinh" value="nu"> Nữ <hr> <input type="checkbox" name="city" value="ct"> Cần Thơ <hr> <input type="checkbox" name="city" value="vl" disabled> Vĩnh Long <hr> <input type="checkbox" name="city" value="hg" disabled> Hậu Giang <hr> <input type="checkbox" name="city" value="st"> Sóc Trăng <hr> <input type="text" placeholder="Nhập họ tên"> <hr> <input type="text" placeholder="Nhập họ tên" disabled> </body> </html>
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> <script> $(document).ready(function(){ $("input[type='checkbox']:enabled").wrap("<span style='border:5px solid red'>"); }); </script> </head> <body> <input type="radio" name="gioitinh" value="nam" disabled> Nam <hr> <input type="radio" name="gioitinh" value="nu"> Nữ <hr> <input type="checkbox" name="city" value="ct"> Cần Thơ <hr> <input type="checkbox" name="city" value="vl" disabled> Vĩnh Long <hr> <input type="checkbox" name="city" value="hg" disabled> Hậu Giang <hr> <input type="checkbox" name="city" value="st"> Sóc Trăng <hr> <input type="text" placeholder="Nhập họ tên"> <hr> <input type="text" placeholder="Nhập họ tên" disabled> </body> </html>