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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:31:02+00:00 2026-06-09T22:31:02+00:00

asked the original question here: Javascript – text field submits to a popup window

  • 0

asked the original question here:
Javascript – text field submits to a popup window

Mash was kind enough to help and answer.

I’m having a strange issue where on the Home page the code is NOT working – goes into the alert each time. but on other pages – it seems to be working properly.

to test use the code: 120663A

Scroll down and enter the lot number above

Any suggestions/help would be very welcome?

thanks
joey

  • 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-09T22:31:04+00:00Added an answer on June 9, 2026 at 10:31 pm

    Although you keep text-transform: uppercase in both page. when you type 120663a, $(‘input[type=text]’).val() only show 120663a.

    That’s why if ($('input[type=text]').val() == "120663a") { in http://freshomega.com/w/tester works and

    if ($('input[type=text]').val() == "120663A") { in http://freshomega.com/w/ does not work.
    I hope this will help.

    You can test 120663A in both page, the result will be reverse.

    To solve this,
    I will do the input text to change upper case in both pages for consistency using toUpperCase() function or change both to lower case.

    For example,

    if ($('input[type=text]').val().toUpperCase() == "120663A") {
        window.open("http://freshomega.com/w/files/120663A.pdf");
    

    I hope this would help.

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

Sidebar

Related Questions

Ok, i kind of asked the wrong question so I've edited the original question.
I asked the original question here , and got a practical response with mixed
Jeff Atwood asked the original question about parameterizing a SQL IN clause , but
I asked a very similar question here but since it is such a fundamental
I asked this question earlier: How to get delta between two text items But
I've asked here a question about Task Killers and widgets stop working ( SO
I recently asked a question about structs, and optimizing some overloaded operators. The original
This is a follow up to a question I asked earlier seen here: Confused
This question has been asked here in one form or another but not quite
Sorry if this is not the type of question to be asked here but

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.