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
This code binds the same handler to the click event, which hides both images and loads the page:
$(document).ready(function() {
$('#image1, #image2').click(function() {
$('#image1, #image2').hide();
$('#div').load('page.html');
});
});
As mentioned in the comments you could devise a way of selecting all the related images. For example wrapping them in a div or adding a class to identify them.
Take a look at this and this fiddle for an example on how to do this.
Hope it helps.