Hello every body i am the newbie in java script
I want to do this homework: cinema's reservation

I have a page like this:
page_1.html
Code:
<!DOCTYPE html>
<html>
<body>
<h2>how many tickets do you want? </h2>
<form action = "page_2.html">
<select>
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
   <option value="5">5</option>
<input type="submit">
</form>
</select>
  
</body>
</html>
page_2.html
Code:
<!DOCTYPE html>
<html>
<body>
<h2>the sum of the number of selected seat must be exactly equal to the number selected on page_1!!</h2>
<form action="page_3.html">
<select name="seating position" multiple>
  <option value="seat1">seat1</option>
 <option value="seat2">seat2</option>
 <option value="seat3">seat3</option>
 <option value="seat4">seat4</option>
<option value="seat5">seat5</option>
<option value="seat6">seat6</option>
<option value="seat7">seat7</option>
<option value="seat8">seat8</option>
<option value="seat9">seat9</option>
<option value="seat10">seat10</option>
</select>
<input type="submit">
</form>



</body>
</html>
page_3.html
In page 3if I click YES then the seats wich are Selected on page_2 must be disappear. If I click NO, nothing should disappear on page_2
Code:
<!DOCTYPE html>
<html>
<body>
<h2>Accept reservation? </h2>
<form action="page_1.html">
 /*Show seating position selected*/
<input type="submit" value = "YES">
<input type="submit" value = "NO">
</form>
</body>
</html>
Please can you help me to write javascript or jquery code?

Thank you very much