I kind of call a variable inside of a .html(); but it does not function properly.
var cap2 = "Here is a muddy truck.";
id = $(this).attr("id");
$("#caption").html("cap"+id); // this literally outputs "cap2" into my caption div
Obviously this is not the complete code but I think its enough for someone knowledgable to point me in the right direction.
I should also note when the last line looks like this
$("#caption").html(cap2); // this correctly outputs "Here is a muddy truck"
all is well but I need the numeric slot to be dynamic. Any thoughts?