$(document).ready(function() {
  $('#new').click(function() {
    window.location.href = '/admin/new'
  });
  $('#my').click(function() {
    window.location.href = '/admin/polls'
  });
  $('#more').click(function() {
    $('#options').append('<input type="text" name="options[]" placeholder="...and more" class="form-input">');
  });
  // Create Donut Graph
  if($('#donut').length) {
    Morris.Donut({
      element: 'donut',
      colors: ['#727272', '#009688', '#FFC107', '#1976D2'],
      data: data_graph
    });
  };
  // Submit Form :: Vote Poll
  $('#vote_poll')
  .submit(function(e) {
    e.preventDefault();
    console.log('vote_poll');
    var data = $(this).serialize();
    console.log($('select').val());
    if ($('select').val() !== '') {
      $.ajax({
        url: '/api/vote',
        type: 'POST',
        data: data
      }).done(function(json){
        if(json.error) {
          $('#message').html(' ' + json.message);
          $('div.toast').removeClass('toast-success').addClass('toast-danger');
          $('div.hide').removeClass('hide');
        } else {
          $('#message').html(' Great, you vote has been registered!');
          $('div.toast').removeClass('toast-danger').addClass('toast-success');
          $('div.hide').removeClass('hide');
          console.log(json);
        }
      });
    };
    e.preventDefault();
  });
  // Submit Form :: New Poll
  $('#new_poll')
  .submit(function(e) {
    var data = $(this).serialize();
    if ($("#title").val()) {
      $.ajax({
        url: '/api/polls',
        type: 'POST',
        data: data
      }).done(function(json){
        $('div.hide').removeClass('hide');
        $('#message').html(' Great, you have created poll "' + json.title + '"');
        $('#go_poll').attr('href', '/poll/' + json.hash);
        $('#new_poll').addClass('hide');
      });
    };
    e.preventDefault();
  });
});

@@ -527,198 +527,232 @@
  // 
-Submit Form :: Vote Poll%0A  $('#vote_poll')%0A  .submit(function(e) %7B%0A    e.preventDefault();%0A    console.log('vote_poll');%0A    var data = $(this).serialize();%0A    console.log($('select').val()
+Clear buttons%0A  $('.btn-clear').click(function() %7B%0A    $(this).parent().addClass('hide');%0A  %7D)%0A  // Submit Form :: Vote Poll%0A  $('#vote_poll')%0A  .submit(function(e) %7B%0A    e.preventDefault();%0A    var data = $(this).serialize(
 );%0A 

Add click function to clear buttons on toast