www.webdeveloper.com
Results 1 to 2 of 2

Thread: Select and disappear

Hybrid View

  1. #1
    Join Date
    May 2014
    Posts
    6

    Select and disappear

    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

  2. #2
    Join Date
    Jan 2005
    Posts
    372
    Yes, no problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles