I have 3 variable in my html:

1. Start Date (text input)

```
<input size="16" name="start_date" type="text"  class="m-wrap">

```
2. End Date (text input)

```
<input size="16" name="end_date" type="text"  class="m-wrap">

```
3. Frequency (dropdown)

```
<select class="span3 chosen" name="summarize" tabindex="1">
   <option value="1">15 minutes</option>
   <option value="2">30 minutes</option>
   <option value="3">1 hour</option>
   <option value="4">3 hours</option>
</select>

```

I would like to have validation input between 3 variable using jquery that, if diff(start\_date and end\_date) > 3 month, summarize can be used only value >= 1 hour (value 3 and 4). All this variable in id=Form\_1.

How can i make this validation ? Any sample code will be appreciated.