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

  • SEARCH
  • Home
  • 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 8474161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:33:09+00:00 2026-06-10T17:33:09+00:00

I need to perform some validation on the below mentioned HTML, where there exists

  • 0

I need to perform some validation on the below mentioned HTML, where there exists three rows of records. Within these three table rows are two enterable fields – a select list (“Reason” field) as well as a textarea item (“Comments” field).

For all records in this table, I need to add some validation through the use of jQuery, that will check to see if the user first decides to place the cursor in the textarea field in one of the three table rows, without first making a selection from the select list (i.e. option value cannot be 0), then display an alert indicating that a “Reason selection is required” and place the focus in this “Reason” field.

<table summary="Contacts" class="uReport uReportStandard">
    <thead>
        <tr>
            <th id="CONTCT_NM">Contact Name</th>
            <th id="TEL_NO">Telephone
                <br/>No.</th>
            <th id="STATE">State</th>
            <th id="REAS">Reason</th>
            <th id="DATE_CALLED">Date
                <br/>Contacted</th>
            <th id="MPA_COMMENT">Comments</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td headers="CONTCT_NM">Contact A</td>
            <td headers="TEL_NO">123456</td>
            <td headers="STATE">VIC</td>
            <td headers="REAS">
                <input type="hidden" name="f01" value="16919" />
                <input type="hidden" name="f02" value="100319" />
                <select name="f10" id="selectLOV1" class="lov_select">
                    <option value="0">--- Please select a reason ---</option>
                    <option value="1" selected="selected">Contacted / Spoken</option>
                    <option value="2">Contacted / Unavailable</option>
                    <option value="3">Other</option>
                </select>
            </td>
            <td headers="DATE_CALLED">
                <input type="text" name="f20" size="14" maxlength="2000" value="30/08/2012 09:42"
                class="date_val" readonly="readonly" style="background-color:#B0C4DE;border:1px solid #999999;"
                />
            </td>
            <td headers="COMMENT">
                <textarea name="f30" rows="2" cols="30" wrap="VIRTUAL">Contact A</textarea>
            </td>
        </tr>
        <tr>
            <td headers="CONTCT_NM">Contact B</td>
            <td headers="TEL_NO">123456</td>
            <td headers="STATE">VIC</td>
            <td headers="REAS">
                <input type="hidden" name="f01" value="16919" />
                <input type="hidden" name="f02" value="100314" />
                <select name="f10" id="selectLOV2" class="lov_select">
                    <option value="0">--- Please select a reason ---</option>
                    <option value="1" selected="selected">Contacted / Spoken</option>
                    <option value="2">Contacted / Unavailable</option>
                    <option value="3">Other</option>
                </select>
            </td>
            <td headers="DATE_CALLED">
                <input type="text" name="f20" size="14" maxlength="2000" value="30/08/2012 09:42"
                class="date_val" readonly="readonly" style="background-color:#B0C4DE;border:1px solid #999999;"
                />
            </td>
            <td headers="COMMENT">
                <textarea name="f30" rows="2" cols="30" wrap="VIRTUAL">Contact B</textarea>
            </td>
        </tr>
        <tr>
            <td headers="CONTCT_NM">Contact C</td>
            <td headers="TEL_NO">123456</td>
            <td headers="STATE">VIC</td>
            <td headers="REAS">
                <input type="hidden" name="f01" value="16919" />
                <input type="hidden" name="f02" value="100312" />
                <select name="f10" id="selectLOV3" class="lov_select">
                    <option value="0">--- Please select a reason ---</option>
                    <option value="1" selected="selected">Contacted / Spoken</option>
                    <option value="2">Contacted / Unavailable</option>
                    <option value="3">Other</option>
                </select>
            </td>
            <td headers="DATE_CALLED">
                <input type="text" name="f20" size="14" maxlength="2000" value="30/08/2012 09:42"
                class="date_val" readonly="readonly" style="background-color:#B0C4DE;border:1px solid #999999;"
                />
            </td>
            <td headers="COMMENT">
                <textarea name="f30" rows="2" cols="30" wrap="VIRTUAL">Contact C</textarea>
            </td>
        </tr>
    </tbody>
</table>
  • 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-06-10T17:33:11+00:00Added an answer on June 10, 2026 at 5:33 pm

    I hope that I’ve understood you correctly:

    edit: sorry i forgot about the alert : http://jsfiddle.net/HuVUL/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to perform some operations on all folders within a file share which
I'm trying to perform some realtime phone-number validation using javascript. I don't need help
Have some variables that I need to perform validation on. Pseudocode is as follows
I need to perform some logging within my embedded WebView javascript, and ideally I
I have a class that I need to perform some actions on but I
I am developing a Firefox extension and I need to perform some high-speed calculations
I'm developing an application through Core Data and I need to perform some calculation
I have a lotus view that stores a number. I need to perform some
I'm currently maintaining some web server software and I need to perform a lot
I need some advice on techniques to perform page redirect in asp.net. Which one

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.