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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:39:26+00:00 2026-06-16T06:39:26+00:00

This question was answered. But stackoverflow will not let my ask other questions. Can

  • 0

This question was answered. But stackoverflow will not let my ask other questions. Can anyone help?

  • 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-16T06:39:28+00:00Added an answer on June 16, 2026 at 6:39 am

    Declare s and set it to be an empty string by default. If q1 is NOT nothing, then assign a value to s. Otherwise s is still an empty string. Later in your code, you can set your text box to be populated with s, and if q1 is empty, s will be too, so nothing will display there.

    //declare s and set it to default to an empty string
    var s = ''
    //make sure q1 is defined and not null
    if (q1 != undefined && q1 != null)
       //if q1 is not empty, then set it equal to '_'+n1+'. '+q1, 
       //otherwise s will be an empty string
       if (q1 != '')
           s = '_'+n1+'. '+q1
    //if s is empty you can do something, 
    //OR you can just set your input value to equal s
    if (s == '')
        //do some stuff here
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is tailing off my other question which was successfully answered: stackoverflow.com/questions/8597929/need-to-create-li-with-list-of-different-links-using-php-explode-method so now
I thought this other SO thread would have answered my question (http://stackoverflow.com/questions/4883751/trouble-reading-json-object-in-python), as it
I know this question can be answered by searching in google. But I have
I am not sure if this question is already answered. But here it goes:
I know there is plenty of question answered over here https://stackoverflow.com/questions/tagged/youtube+regex , but not
I thought I had answered this question before thanks to StackOverFlow, but I hastily
I've searched over the topics on Stackoverflow but this question hasn't been answered so
I have seen this question answered in reference to Bash, but can't find one
I've seen this question answered here for Rails 2, but not Rails 3. I
I came across this answered question , but I can't seem to compile the

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.