I will trim this down to make it as simple as possible. I have a variable named car
and another one named car_output
. Let's say value = 'car'
and car_output = 'I like to drive my car'
So, I'm trying to get the contents of car_output
placed inside a div div#car
:
$('#'+value).html(value+'_output');
This shows within the div div#car
the actual word "car_output" and not what the variable's contents are (I like to drive my car).
How can I get the variable's contents to be placed inside div#car
?
`