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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:43:45+00:00 2026-05-19T00:43:45+00:00

This should really be easy and it has worked on every page of my

  • 0

This should really be easy and it has worked on every page of my site except for this one. I really can’t figure out what I’m doing wrong.

<script type="text/javascript"> 
$(document).ready(function()
{
    $("#center, #west").css("min-height","110%");
    $("#positionName").NobleCount('#positionNameCounter', {max_chars: 50, on_negative: 'go_red', on_positive: 'go_green' });
    $("#cName").NobleCount('#cName_counter',{ max_chars: 255, on_negative: 'go_red', on_positive: 'go_green' });
    $("#cURL").NobleCount('#cURL_counter',{ max_chars: 255, on_negative: 'go_red', on_positive: 'go_green' });
    $(".info th").addClass("ui-widget-header").css("border","none").attr("style","font-size:14px; padding:7px;");
    $(".info").addClass("ui-corner-all");
    $(".info td").addClass("padding");
    $(".bold").addClass("ui-tabs-nav");
    var company = $("#company").val();
    $("#checkAvailability").click(function(){
        alert(company);
    });
});
</script> 

And here is my html:

<input type="text" name="company" id="company" maxlength="40" title="Desired Company Name" style="width:50%;" /><span style="width:20%; padding-left:5px; cursor:pointer; text-decoration:underline;" id="checkAvailability">

Its killing me b/c I can’t figure it out for the life of me. Thanks in advance,

Jeff

Edit: Andy E. hit it on the nail, thanks for you 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-05-19T00:43:46+00:00Added an answer on May 19, 2026 at 12:43 am

    Your text box doesn’t have a default value, so it will be blank when the company variable is set using the following line in your ready handler:

    var company = $("#company").val(); // Empty here since no value has been set 
    

    Change it to:

    var company = $("#company");
    $("#checkAvailability").click(function(){
        alert(company.val());
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This really shouldn't be hard, I just can't figure out how to do it.
This should really be easy for an experienced android programmer. Unfortunately I don't know
This seems like it should be really easy but I couln't find an answer
This should be a really, really simple one, I would assume. I'm throwing together
This seems like it should be really simple, but I'm unable to figure this
Ok, this should be really easy, but I just don't have enough experience. I
This seems like it should be really easy but I've been having trouble with
something what should really be easy and I can't get it to work... I
This should really be allowed - I do not understand why it is not.
This should be really simple, but I have tried many solutions posted on 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.