开发者

Next question which depends on the button you press

开发者 https://www.devze.com 2023-03-26 17:24 出处:网络
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 开发者_如何学Goshou

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

精彩评论

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

关注公众号