Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6556807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:59:31+00:00 2026-05-25T12:59:31+00:00

I have got below long html generated by .NET code. <html> <title>Booking Form</title> <body

  • 0

I have got below long html generated by .NET code.

<html>
<title>Booking Form</title>
<body id="b2b">
<form name="aspnetForm" method="post" action="index.aspx" id="aspnetForm">
<div>
        <table class="stayingIn" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="2" class="section topsection">
                <span class="mandatoryExplanation"><span class="asterisk">*</span> Mandatory Fields</span>
                <h2>
                    <img src="/images/b2b/titles/aboutthetours.gif" alt="About The Tours" /></h2>
            </td>
        </tr>
        <tr>
            <td class="type">
                <label for="tour_whereStay" id="lblvalid12">
                    I will be staying in <span class="asterisk">*</span></label></td>
            <td class="field">
            <input name="ctl00$MainContent$TourBookingEnquiry$tour_Location" type="hidden" id="ctl00_MainContent_TourBookingEnquiry_tour_Location" />
                <select class="isSelect" validid="12" id="tour_whereStay" >

                    <option value="">Please Select</option>
                    <option value="Dubai">Dubai</option>
                    <option value="AbuDhabi">Abu Dhabi</option>
                    <option value="Fujairah">Fujairah</option>
                </select>
            </td>
        </tr>
    </table>            
    <table width="100%" border="0" cellspacing="0" cellpadding="0">      
        <tr>
            <td colspan="2">
                <ul class="numPsgrCols plain clearfix">
                    <li class="numPsgrField">
                        <label for="car_guestAdults" id="lblvalid15">
                            Adults <span class="asterisk">*</span></label>
                        <br />
                        <select class="isSelect" id="car_guestAdults" validid="15">
                            <option value="">-</option>
                            <option value="0">0</option>
                            <option value="1">1</option>
                            <option value="2">2</option>
                        </select>
                        <br />
                        <span>(13 and older)</span> </li>

                    <li class="numPsgrField">
                        <label for="car_guestChildren">
                            Children</label>
                        <br />
                        <select id="car_guestChildren">
                            <option value="">-</option>
                            <option value="0">0</option>

                            <option value="1">1</option>
                            <option value="2">2</option>
                        </select>
                        <br />
                        <span>(6-12 years)</span> </li>
                    <li class="numPsgrField last">
                        <label for="car_guestInfants">

                            Infants</label>
                        <br />
                        <select id="car_guestInfants">
                            <option value="">-</option>
                            <option value="0">0</option>
                            <option value="1">1</option>
                            <option value="2">2</option>

                        </select>
                        <br />
                        <span>(5 and younger)</span> </li>
                </ul>
            </td>
        </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="2" class="section">
                <h2>
                    <img src="/images/b2b/titles/aboutyou.gif" alt="About You" /></h2>
            </td>
        </tr>
        <tr>
            <td class="type">
                <label for="car_title" id="lblvalid1">

                    Title <span class="asterisk">*</span></label></td>
            <td class="field">
                <select id="car_title" validid="1" class="isSelect">
                    <option value="" selected>-</option>
                    <option value="Mr.">Mr.</option>
                    <option value="Mrs.">Mrs.</option>
                    <option value="Ms.">Ms.</option>
                    <option value="Miss">Miss</option>
                    <option value="Dr.">Dr.</option>
                    <option value="Prof.">Prof.</option>                  
                </select>
            </td>
        </tr>
        <tr>
            <td class="type">
                <label for="car_firstname" id="lblvalid2">
                    First Name <span class="asterisk">*</span></label></td>
            <td class="field">
                <ul class="aboutYouCols plain clearfix">
                    <li class="field">
                        <input class="text isBlank isAlphabet" validid="2" type="text" id="car_firstname"
                            maxlength="255" />
                    </li>
                    <li class="type">
                        <label for="car_email" id="lblvalid7">
                            Email <span class="asterisk">*</span></label>
                    </li>
                    <li class="field last">
                        <input class="text isEmail" validid="7" type="text" id="car_email" maxlength="255" />
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td class="type">

                <label for="car_lastname" id="lblvalid3">
                    Last Name <span class="asterisk">*</span></label></td>
            <td class="field">
                <ul class="aboutYouCols plain clearfix">
                    <li class="field">
                        <input class="text isBlank isAlphabet" validid="3" type="text" id="car_lastname"
                            maxlength="255" />
                    </li>
                    <li class="type">

                        <label for="car_email_confirm" id="lblvalid23">
                            Confirm Email <span class="asterisk">*</span></label>
                    </li>
                    <li class="field last">
                        <input class="text isEmail isEqual_car_email" validid="23" type="text" id="car_email_confirm"
                            maxlength="255" />
                    </li>
                </ul>
            </td>

        </tr>    
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td colspan="2" class="section">
                <input type="image" name="ctl00$MainContent$TourBookingEnquiry$rfp_Booking_submit" id="ctl00_MainContent_TourBookingEnquiry_rfp_Booking_submit" class="submit over2" src="/images/b2b/buttons/submit_off.gif" alt="Submit" style="border-width:0px;" />

            </td>
        </tr>
    </table>
    </div>
</form>
</body>
</html>

In above html I have got one button (see below code taken from above html) from which I want to post all the form values to other page and then it will redirected to another page on successfull ajax post call.

<input type="image" name="ctl00$MainContent$TourBookingEnquiry$rfp_Booking_submit" id="ctl00_MainContent_TourBookingEnquiry_rfp_Booking_submit" class="submit over2" src="/images/b2b/buttons/submit_off.gif" alt="Submit" style="border-width:0px;" />

Below is Jquery I am trying to write but getting failed.

    $(document).ready(function() 
    {
        $("#<%= rfp_Booking_submit.ClientID %>").click(function(event)
        {            
$("#aspnetForm").submit(function(event)
            {                
       // setup some local variables
                            var $form = $(this);
                            // let's select and cache all the fields
                            $inputs = $form.find("input, select, button, textarea");
                            // serialize the data in the form
                            serializedData = $form.serialize();

                            // let's disable the inputs for the duration of the ajax request
                            $inputs.attr("disabled", "disabled");
                            alert("form data-"+serializedData);

                            // fire off the request to FormTest.html
                            $.ajax({
                                    url: "Email-TourBookingEnquiry.aspx",
                                    type: "post",
                                    data: serializedData,
                                    // callback handler that will be called on success
                                    success: function(response, textStatus, jqXHR)
                                    {
                                        // log a message to the console
                                        console.log("Hooray, it worked!");
                                        location.href = "Thank-You.aspx";
                                    },
                                    // callback handler that will be called on error
                                    error: function(jqXHR, textStatus, errorThrown)
                                    {
                                        // log the error to the console
                                        console.log("The following error occured: "+ textStatus, errorThrown);
                                    },
                                    // callback handler that will be called on completion
                                    // which means, either on success or error
                                    complete: function()
                                    {
                                        // enable the inputs
                                        $inputs.removeAttr("disabled");
                                    }
                            });
            // prevent default posting of form  
            event.preventDefault();
});
        });    

Please suggest what wrong I am doing as I am not able to post all the values.

Note: All the values in dropdown are filled using jquery on the basis of other dropdown selection.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:59:32+00:00Added an answer on May 25, 2026 at 12:59 pm

    I notice the selects ddo oes not have a name attribute which is needed for serialization of form elements.

      <select class="isSelect" validid="12" id="tour_whereStay" >
      <select id="car_title" validid="1" class="isSelect">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So far i have got the code below which works lovely when trying an
We have got a custom MembershipProvider in ASP.NET . Now there are 2 possible
I have got some code to load an assembly and get all types, which
I have got the following code from here to read an Excel file using
I have a long list of links that I spit out using the below
I've got a set of product listings that each have a link below them
I have a piece of code that in principal looks like the below. The
I have a WPF (C# and .NET 4) application that has a long running
I have some code that works and changes the style sheet using a form.
Have got an NSString *str = @12345.6789 and want to find out if there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.