开发者

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
    }
});

});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜