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 7878911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:47:10+00:00 2026-06-03T03:47:10+00:00

I’d be very grateful with any help. I’m trying to add ‘not applicable’ to

  • 0

I’d be very grateful with any help. I’m trying to add ‘not applicable’ to any empty input fields that are not relevant within section/s of a form on submit. Sections of the form get disabled/hidden depending on selection/s hence why I would like to achieve the below effect

My target is…

question: “Not Applicable” 
question 2:” Not Applicable” and so forth but not 

“question:           “  in the recipients email

I’m using the latest jQuery library and the validation plugin.
Thanks in advance

  • 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-03T03:47:11+00:00Added an answer on June 3, 2026 at 3:47 am

    Do this way:-

    $("#submit").click(function(){
        $("input[class='required']").each(function(){
              if ($.trim($(this).val()).length == 0)               
                  $(this).val('Not Applicable');
        });
    });
    

    Once validation is OK then go for submitting the form.

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

Sidebar

Related Questions

I would be very grateful if someone could help me with this. I have
This is driving me crazy. Very grateful if someone could help me out! Problem:
I would be so very grateful if someone could help me out! I have
I am looking for some help and would be VERY grateful for it. I
I am looking for some help and would be VERY grateful for it. I
I am trying to break apart a very simple collection of strings that come
I got another libgit2 issue and will be very grateful for your help. I'm
I would be grateful for any help typesetting music in LaTeX. I've tried to
Very simply put: I have a class that consists mostly of static public members,
Very simple question, is there any cloud server enviroments avaliable these days for us

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.