#date
is a select tag (dropdown menu).
I already have a variable date001
and I want to change its value according to new value of dropdown menu.
$("#date").change(function() {
var a = $("#room").html(); // result is `001` - it's ok
var $("date" + a) = $(this).val(); // doesn't work !
});