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[name='music']:checkbox").wrap("<span style='border:5px solid red'>"); }); </script> </head> <body> <input type="checkbox" name="music"> Âm thanh <hr> <input type="checkbox" name="image"> Hình ảnh </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[name='music']:checkbox").wrap("<span style='border:5px solid red'>"); }); </script> </head> <body> <input type="checkbox" name="music"> Âm thanh <hr> <input type="checkbox" name="image"> Hình ảnh </body> </html>