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[value='nam']:radio").wrap("<span style='border:5px solid red'>"); }); </script> </head> <body> <input type="radio" name="gender" value="nam"> Nam <hr> <input type="radio" name="gender" value="nu"> Nữ </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[value='nam']:radio").wrap("<span style='border:5px solid red'>"); }); </script> </head> <body> <input type="radio" name="gender" value="nam"> Nam <hr> <input type="radio" name="gender" value="nu"> Nữ </body> </html>