Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Sep 2015
    Posts
    1
    Member #
    51793

    Post show or hide div contents using toggle

    <script>
    $(document).ready(function(){
    $("#st_lo").click(function(){
    $("#img_stud").load("login.html");
    $("#img_stu").toggle();
    });
    });
    </script>


    <div id="img_stud">
    <img src="images\img1_a.jpg" id="img_stu" width="230" height="280" />
    </div>
    <a href="#" id="st_lo"><h3>Student Login</h3></a>

    The above code is to toggle the load another webpage contents in div and toggle the div
    when i load the page the img1 will be displayed and when i click on Student login link it shud load the login page in Div replacing img1
    But i need a solution if i again click on the same link i.e student login it shud display img1 in div and hide the login page
    Please provide me the solution for this
    Thank You

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:45 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com