Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".questions").children().hide();
- $(" div.questions > div:nth-child("+history[get_number]+")").fadeIn();
- $(function(){
- $(document).on('click', '.questions > div', function(){
- if( $(this).is(':last-child') ){
- alert('Last Question');
- } else {
- alert('Regular Question');
- }
- });
- });
- $("div.questions > div:last").unbind('click');
- $(document).on('click', '.questions > div:not(:last-child)', function(){
- alert('Regular Question');
- });
- $(document).on('click', '.questions > div:last-child', function(){
- alert('Specific Question');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement