Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
- <script>
- $( document ).ready(function() {
- $('input:radio[name="postage"]').change(function() {
- if ($(this).val() == 'Yes') {
- $('#watch').show();
- } else {
- $('#watch').hide();
- }
- });
- });
- </script>
- <label>
- <input type="radio" id="postageyes" name="postage" value="Yes" />Yes</label>
- <label>
- <input type="radio" id="postageno" name="postage" value="No" />No</label>
- <input type="text" id="watch" />
Add Comment
Please, Sign In to add comment