Next question which depends on the button you press
I'm a complete newb writing out a small little script in which the third question depends on what button you press on the second question, however I am completely lost as to how I 开发者_如何学Goshould proceed :/
http://jsfiddle.net/pufamuf/uSuqB/6/
Thank you so much :)
I guess you could bind a "special" click handler to the "special" element:
<input type="button" value="Something Special" id="specialthing">
$("#specialthing").click(function() {
window.location.href = 'AgeVerification.jsp';
});
or:
$("input[type='button']").click(function() {
switch(this.id) {
case 'specialthing' : $("#specialDiv").show();
case 'foo' : // so something else
}
});
});
精彩评论