I am really new to javascript and jquery. I would like to set a value of the dropdown form a value passed in the url
The possible values of the dropdown are
Large Van - Sameday
Extra Large Van - Sameday
In jquery this is what i am trying
var vehicle = querystring('Vehicle');
            if (vehicle != 'undefined' && vehicle != "") {
                var vehicleRqd = decodeURI(vehicle) + " - Sameday";
                $("[id$='ddlVehicleType']").find('option:contains(' + vehicleRqd + ')').attr("selected", true);
            }
When the vehicle in the url parameter is Large Van - Sameday the value is getting set to Extra Large Van - Sameday. I am assuming it could be to do with similar text (Large Van). Can anyone help, i am really new to Jquery and javascript.
 
     
     
    