SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2010
    Location
    Bangladesh
    Posts
    65
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question jquery in a closed room (content reinitialize is needed)

    Hi,

    I have made an web page based on jQuery.
    (All the actions taken in one page)

    Step 1: there is some text in content. and some text is hidden
    Code:
    style="display:none"
    now $content = some text + hiddden text

    step 2: when a menu bar clicked, content replaced with the hidden text that is a form.
    now $content = hidden text.

    Step 3: after submit button clicked content replaced by data for reviewing the settings.
    now $content = form values provided by user.

    step 4: send a confirmation email and make some DB operation using ajax and content replaced by the result for example "Quote successfully sent to the email address u provided".
    now $content = result.

    Now I stuck. Now at this moment if I click the menu bar(Step 2) I want to see the hidden text. actuallly want the page in initial stage.

    How can I implement this? any suggestion?

    thanks in advanced,
    Rrashed

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2010
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there are various ways to do it in jQuery, here's one of them

    Code JavaScript:
    $("#hidden").append("#content").show();

    to check if an element is hidden in jquery use the :hidden selector


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •