Guest User

Untitled

a guest
Jan 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <input type="checkbox" name="cbx-1">
  2. <input type="checkbox" name="cbx-2">
  3. <input type="checkbox" name="cbx-3">
  4.  
  5. <input type="text" id="text">
  6.  
  7. <button type="button" id="bt-ok">Ok</button>
  8.  
  9. <script type="text/javascript">
  10. $('#bt-ok').click(function() {
  11. $("input:checkbox[name=type]:checked").each(function(){
  12. $("#text").val($(this).val());
  13. });
  14. });
  15. </script>
Add Comment
Please, Sign In to add comment