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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:58:24+00:00 2026-06-15T19:58:24+00:00

I want to do a simple check that an input field on one of

  • 0

I want to do a simple check that an input field on one of my forms has text entered and if it does move the progress indicator towards 16 if it doesnt do nothing.

Clearly I’m missing something simple here but shouldn’t I just be able to check that the val is greater than 1 here?

Here is the coffee-

jQuery ->
    $("#user_first_name").blur (event) ->
      if $(this).val > 1
        setInterval (->
            front_index_gage.refresh 16
            ), 500
      else

Is this an error in my coffee syntax?

=======UPDATE=============

After ensuring that the first field check worked it seems that this isnt the most elegant solution as this is the path I would be going down

jQuery ->
    $("#user_first_name").blur (event) ->
      if $(this).val().length > 1
        setInterval (->
            front_index_gage.refresh 16
            ), 500
      else
jQuery ->
    $("#user_last_name").blur (event) ->
      if $(this).val().length > 1
        setInterval (->
            front_index_gage.refresh 33
            ), 500
      else
        setInterval (->
            front_index_gage.refresh 16
            ), 500

with 6 form fields to check fairly new to js and coffee but is this a case where I would use a switch conditional to check and refresh the progress indicator?

Thanks again for your attention

  • 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-15T19:58:26+00:00Added an answer on June 15, 2026 at 7:58 pm

    “has text entered” means “there is one character or more in the value “, i.e. “the length is > 0″. You’re comparing the value itself.

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

Sidebar

Related Questions

I want a simple form with one text box and a submit button. For
I understand that Silverlight 3.0 has binding but just want a simple example on
Is there some simple method that can check if an input object to some
I've a simple html form with text field with id=zip what I want to
I want to create validation on a form field which checks that input is
My intent is to analyze the user's input from a text field and check
I'm writing simple filter in Android and want to use ExpandableListAdapter with check boxes.
I want a simple TextView to behave the way simple_list_item_1 in a ListView does.
I'm working on a simple program that collects and checks user-input. In addition to
I'd like an input field that I can have javascript set certain attributes for,

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.