Question: I am trying to develop QRCode reader application in iPhone.
I am trying to use ZXing SDK. i have successfully run the sample application given by ZXing. But i ma trying to develope new application as per instructions in Readme given by Zxing. but when i am trying to add ZxingWidget in build phases. it going add but it shows like below![enter image description here](https://i.stack.imgur.com/2xS7O.png) 

I think it will getting problem to me. When i am trying to run application it will give erros like Lexical or Prepocessor issue File not found.

Is am doing any thing wrong when am added to files to application. 
Actaully first of all i added ZxingWidget.xcodeproj to my application by drag and drop. But it wont give any alert window would you like copy like similar when we adding images or files to xcode. and next i added cpp and iphone folders to xcode application. and later i added the frameworks as per read me.
Please any one help me in this issue.

Thanks in advance

Answer: 
Hiya **demo** <http://jsfiddle.net/96Lbf/>

This demo will set `to` text box with `+3 days` taking `from date selection into account.

**jquery code**

```
   $(function() {
        $( "#from, #to" ).datepicker({
            defaultDate: "+1w",
            changeMonth: true,
            numberOfMonths: 1,
            onSelect: function( selectedDate ) {
                if(this.id == 'from'){
                  var dateMin = $('#from').datepicker("getDate");
                  var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(),dateMin.getDate() + 1); 
                  var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(),dateMin.getDate() + 3); 
                  //$('#to').datepicker("option","minDate",rMin);
                  //$('#to').datepicker("option","maxDate",rMax);  
$('#to').val($.datepicker.formatDate('mm-dd-yy', new Date(rMax)));                    
                }

            }
        });
    });

```

**Html**

```
<div class="demo"> 

<label for="from">From</label> 
<input type="text" id="from" name="from"/> 
<label for="to">to</label> 
<input type="text" id="to" name="to"/> 

</div>​

```
> 
> If month = 4, I want to see car1 picture. If month = 5, i want to see car3 picture. How can I do it?
> 
> 
> 

```
//..............
onSelect: function( selectedDate ) {
  if(this.id == 'from'){
    var dateMin = $('#from').datepicker("getDate");
    var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(),dateMin.getDate() + 0);
    alert (rMin.getMonth());
    if(rMin.getMonth() == 4){ 
      var image1=new Image();
      image1.src="car1.jpg"
      if(rMin.getMonth() ==5){
        var image2=new Image()
        image2.src="car3.jpg";
      }                           
    }
  }
}

```

```
    <label for="from">From</label> 
    <input type="text" id="from" name="from"/> 

    <label for="pics">pics</label> 
    <input type="image"
           src="car1.jpg"
           id="pics"
           name="pics"
           alt="Submit"
           width="48" height="48">

...............

```