Q:

Jquery not changing input text after autocomplete

my jquery is having a little issue.  
I'm trying to make a Start and Finish time function.  I would like it to check that the finish time is greater or equal than the start time and if it is change it to +1 hour of the value of start. 
It all works apart from $('#finish').val(result); 
For some reason it does not change the value.  Any ideas? 
$( "#finish" ).autocomplete(
            {
                delay: 0,
                source: time_values,
                select: function(event, ui) 
                {
                    var res = ui.item.value;
                    var start = $( "#start" ).val();

                    if(res <= start)
                    {
                        alert('Finish time cannot be less than Start time');
                        var hour = '1.00';
                        var result =  +start + +hour;

                        $('#finish').val(result);
                    }
                }
            });

A:

you need to convert the string to another type before comparison,
try
var res = parseFloat(ui.item.value);
 var start = parseFloat($( "#start" ).val());

