anchor.diff:  
    <form method="post">
       <select id="dropdown" name="Upcoming Events Range" onchange="changeHiddenInput(this)">
  -        <option value="7">One Week</option>
  +        <option selected="selected" value="7">One Week</option>
           <option value="14">Two Weeks</option>
           <option value="30">One month</option>
           <option value="90">Three months</option>
  
positive.code:     var objHidden = document.getElementById("hiddenInput");
      objHidden.value = objDropDown.value;
      var a = objHidden.value;
  }
  
  <!--request.getParameter("Upcoming Events Range") -->
  
negative.code: 
    <tbody>
      <% (@events.sort_by {|event| event.start_time}).each do |event| %>
      <% if DateTime.current <= event.start_time and event.start_time <= DateTime.current + request.getParameter("Upcoming Events Range").days %>
        <tr>
          <td><a href="/events/<%=event.id%>"><%= event.name %></a></td>
          <td><%= event.description %></td>
  