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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:41:30+00:00 2026-06-03T07:41:30+00:00

How come when I write a click() event where the input field (created by

  • 0

How come when I write a click() event where the input field (created by the jquery ui combobox widget) is in scope of the selector the event never fires?

I have a form that has a validation which highlights the entire parent <div> of that form field using the css class ‘reqFieldGroupEmpty’ when the end-user doesn’t fill it out correctly.

When a user clicks inside the missed required field I have a click() event remove that class of that form field’s parent

$('input, textarea, select').click(function () { $('div').removeClass('reqFieldGroupEmpty') });

However, as I mentioned at the start, the combobox-created isn’t triggering the click(), thus not removing the class.

What am I missing?

Thank you for helping!

  • 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-03T07:41:31+00:00Added an answer on June 3, 2026 at 7:41 am

    Post answered by JakeCigar via jQuery Forum:
    http://forum.jquery.com/topic/jquery-ui-combobox-widget-not-working-with-click-event#14737000003343231

    click is only finding the elements that exist when you set it up.
    Use the deferred form of .on() – jQuery API

    $('body').on('click’, 'input, textarea, select' , function () { $('div').removeClass('reqFieldGroupEmpty') });
    

    JΛ̊KE”

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

Sidebar

Related Questions

I'm trying to write a small application and have come across a compile time
Most of us write conditionals like: if (resultIndex == 0) ...but occaisionally I come
I'm trying to write a function that takes multiple arguments, which can come either
I am working on my website, and I have come to an impasse: the
I'm trying to write a custom in-window confirm dialog (based on jQuery UI) that
Good morning. I have a class with data derived from InotifyPropertyChange. The data come
i have a grouped table, and if i write: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
So i have to come up with some kind of mini script that behaves
I don't need to write this in jQuery but I'm not versed enough in
Come across what looks at first sight like an MT-issue, but I'm trying to

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.