Let suppose that we have the following datalist, and a js variable var carID = \'\':
var carID = \'\'