JQuery hidden objects

前端 未结 4 535
夕颜
夕颜 2021-01-29 11:27

Ok guys, I have edited the question so that you can understand. I have 10 images and their respective name in paragraph. So, you have 10 images and 10 paragraphs. As the images

4条回答
  •  一生所求
    2021-01-29 11:48

    If you are hidden on the click, and the click will always hide both, you may have this as your script:

    $(document).ready (function() {
        $('#image1, #image2').click(function() {
          $('#image1, #image2').hide();
    
          $('#div').load('page.html', function() {
            alert('Load was performed.');
          });        
        });
    });​
    

    Are you sure you are returning a correct content from you 'page.html'?

提交回复
热议问题