i have created 4 buttons dynamically, that the value of one button have correct answer. so i want to disable all other the buttons when click the correct answer button(except correct answer button)????
sample code
#button {
cursor:pointer;
width: 175px;
height: 45px;
margin-left:70px;
margin-top:15px;
-moz-border-radius:34px;
-webkit-border-radius:34px;
border-radius:34px;
-moz-box-shadow:0px 0px 20px #00004d;
-webkit-box-shadow:0px 0px 20px #00004d;
box-shadow:0px 0px 20px #00004d;
font-weight:bold;
background:#FFFFFF;
}
$(function()
{
for (var i = 0; i <4; i++)
{
var radio = $('<input/>').attr({type: 'button', name: 'colorinput', class: 'btnclass' , value: randStrArray[i], id: 'button'}).appendTo('#image').
after('<br/>').
click(function(event)
{
ansCheck(event.target.value);
});
}
});