Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="checkbox" name="cbx-1">
- <input type="checkbox" name="cbx-2">
- <input type="checkbox" name="cbx-3">
- <input type="text" id="text">
- <button type="button" id="bt-ok">Ok</button>
- <script type="text/javascript">
- $('#bt-ok').click(function() {
- $("input:checkbox[name=type]:checked").each(function(){
- $("#text").val($(this).val());
- });
- });
- </script>
Add Comment
Please, Sign In to add comment