var 1 = document.getElementById("1").click();
var 2 = document.getElementById("2").click();
var 3 = document.getElementById("3").click();
if(1){
userChoice =="1";
}else if (2){
userChoice == "2";
}else if (3){
userChoice == "3";
}
I'm working on code that gets user choice when the user clicks on a div.I'm attempting to 'get' the element and assign it to a variable but it returns null, couldn't find a solution in jquery either.Any suggestions??