How can we call a class or id defined in page to the other page. please help me to fix this
Dear Nicolar Parada,
Thanks for your response,I'm fresher in coding so that I need your help.I hope that you are going to help me.
please find my complete code below.
Page1:
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
Page2 Image count:
</body>
</html>
Page2:
<!doctype html>
<html>
<head>
<title>images count</title>
<script src="ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.…"></script>
<script>
$(document).ready(function(){
$("#count").html($(".galery img").length);
});
</script>
</head>
<body>
<div id="box">
<p style="padding: 20px;">Images Count:<span id="count"></span></p>
</div>
<div class="galery">
<img src="download.png">
<img src="download.png">
<img src="download.png">
<img src="download.png">
</div>
</body>
</html>
now i want to display the images count of page2 in page1. Kindly please help me on this.
thank you