$(document).ready(function(){ var cars = $("#cars").val(); alert(cars);}