I am getting the above error in this code:
var inputs = {
$("<input>").attr({"type":"hidden","name":"collegeID"}).val(collegeID),
$("<input>").attr({"type":"hidden","name":"collegeID"}).val(collegeID),
$("<input>").attr({"type":"hidden","name":"collegeID"}).val(collegeID),
$("<input>").attr({"type":"hidden","name":"collegeID"}).val(collegeID),
$("<input>").attr({"type":"hidden","name":"collegeID"}).val(collegeID),
$("<input>").attr({"type":"hidden","name":"collegeID"}).val(collegeID)
}
This looks pretty valid to me. I want to .append() the variable on to a div and I dont want to have to create a bunch of different variables to do that.
{ key: value }[]) for array literals. Curly brackets are for objects meaning it expects key-value pairs.inputs = []to create an array?