$('#submit'+value).append("For your incorrect answer of:"+" "+value+" <p id=\"hintstoshow"+value+"\"> The following hints exist: </p><p> <input id=\""+index+"\" type=\"button\" class=\"submitbutton\" value=\"Submit a hint for this problem\">");
$('#submit'+value).append("For your incorrect answer of:"+" "+value+" <p id=\"hintstoshow"+value+"\"> The following hints exist: </p><p> <input id=\""+index+"\" type=\"button\" class=\"submitbutton\" value=\"Submit a hint for this problem\">");
}$('#hintstoshow'+value).append("<p>"+index+"<input data-value=\""+value+"\" id=\""+index+"\" type=\"button\" class=\"hintbutton\" value=\"Upvote this Hint\"></p>");