Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Multiple timestamps on a page

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32145
    Eclipse
    Member

    Hi all, does anyone has any idea on how to make a page with at least 44 buttons on it using the button-tag and by pressing each of these buttons, the current time should be displayed?
    These times should be different because they should write down the time the button was pressed and not the time the page-load completed.

    I made this already:





    $(document).ready(function() {
    $("#clicked2").click(function () {
    $("#target2").show("slow");
    $('#target2').append('

    ');
    $("#clicked2").hide("fast");
    });
    });

    When one of the buttons is pressed, the current time is echoed in a div which is hidden and shown with jQuery. Only problem is that this is the time the page loaded. Any ideas?

    #53223
    Eclipse
    Member

    Kinda solved this with ajax already, at least for one of the buttons.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.