Closed

Remove select boxes

This project was awarded to shootdweb for $30 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Skills Required
Project Budget
$30 - $250 USD
Total Bids
19
Project Description

This is a very very small job.

It consists in removing 4 date select boxes and converting them into input fields.

Now it is possible to select dates from some drop down select boxes AND also from a javascript calendar.
I want to cancel the drop down select boxes and only allow selection from the javascript calendar.
Instead of the select boxes must be an input field or something similar, where date chosen in the calendar is displayed.

I'll send the actual script to be modified and the url where it is displayed to see in action to the freelancer interested.

THIS IS THE PART OF THE CODE TO MODIFY AND ATTACHED A JPG IMAGE TO BE MORE CLEAR.


<select id='checkin_day' name='checkin_monthday' class='checkin_day' onChange="checkDateOrder(this,'checkin_monthday','checkin_year_month','checkout_monthday','checkout_year_month');updateDaySelect(this);">
<option class='day prompt' value='0'>Day</option>
<?php
$selected_day = date("d");
for($i=1; $i<=31; $i++){
echo "<option value='".$i."'".(($selected_day == $i) ? " selected='selected'" : "").">".$i."</option>";
}
?>
</select>
<select id="checkin_year_month" name="checkin_year_month" class="checkin_year_month" onChange="checkDateOrder(this,'checkin_monthday','checkin_year_month','checkout_monthday','checkout_year_month');updateDaySelect(this);">
<option class="month prompt" value="0">Month</option>
<?php
$selected_year_month = date("Y-n");
for($i=0; $i<12; $i++){
$cur_time = mktime(0, 0, 0, date("m")+$i, "1", date("Y"));
$val = date("Y", $cur_time)."-".(int)date("m", $cur_time);
echo "<option value='".$val."' ".(($selected_year_month == $val) ? "selected='selected'" : "").">".get_month_local(date("n", $cur_time))." '".date("y", $cur_time)."</option>";
}
?>
</select>

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online