Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(function() {
- if (!$('#id_is_a_poll').is('checked')) {
- $('#poll_form').hide()
- }
- $('#id_is_a_poll').click(function(el) {
- var poll_form = $('#poll_form')
- if (poll_form.is(":visible")) {
- poll_form.hide()
- } else {
- poll_form.show()
- }
- })
- })
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement