Advertisement
Guest User

Untitled

a guest
Apr 25th, 2012
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
  2. "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <script type="text/JavaScript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
  7. <script language="JavaScript">
  8. $(document).ready(function(){
  9. var el = $("#pos");
  10.  
  11. var radio = $("<input type=\"radio\" />");
  12. radio.prop("name", "op1");
  13. el.append(radio);
  14. el.append("first<br/>");
  15.  
  16. radio = $("<input type=\"radio\" />");
  17. radio.prop("name", "op1");
  18. el.append(radio);
  19. el.append("second<br/>");
  20. });
  21. </script>
  22. </head>
  23. <body>
  24. <div id="pos"></div>
  25. </body>
  26. </html>
Advertisement
RAW Paste Data Copied
Advertisement