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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:37:23+00:00 2026-05-27T02:37:23+00:00

I tried to bind on change event to the select tag with few options.

  • 0

I tried to bind on change event to the select tag with few options. If I’m binds it to select tag it’s not works. If I bind on click event to H1 tag and it’s works ok.

html

<div class="subtitle_block">
  <span>Резюме по разделам</span>
    <form name='region_filter' action='/jobseek/search_cv/' method='post'>                                                
      <select id="id_region" class="" name="region">
        <option value="" selected="selected">Все</option>
        <option value="3">Донецк</option>
        <option value="2">Киев</option>
        <option value="1">Харьков</option>
      </select>                    
    </form>
  <div class="clear_both"></div>
</div>

I tried like that

$(function(){
    console.log($('#id_region')); //this is works
    $('#id_region').bind('change', function(){console.log('asdf')}); //this is not works
});

And like that

$(function(){
console.log($('#id_region')); //this is works
$('#id_region').change(function(){console.log('asdf')}); //this is not works
});

Even like that

$(function(){
console.log($('#id_region')); //this is works
$('#id_region').click(function(){console.log('asdf')}); //this is not works
});

What is wrong in there?

  • 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-27T02:37:24+00:00Added an answer on May 27, 2026 at 2:37 am

    Try putting your code inside $(document).ready():

    $(document).ready(function() {
      console.log($('#id_region')); //this is works
      $('#id_region').change(function(){console.log('asdf')}); //this is not works
    });
    

    See this working jsfiddle

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

Sidebar

Related Questions

I have this bit of jQuery: $('body').bind('orientationchange',function(event){ alert('orientationchange'); }) If you change the orientation
How do I bind a function to the HTML5 localStorage change event using jQuery?
I'm trying to detect change event for a select list as if from a
I would like to catch the click/change selection event on a listbox that has
Tried this: $('.link').click(function(e) { $.getScript('http://www.google.com/uds/api?file=uds.js&amp;v=1.0', function() { $('body').append('<p>GOOGLE API (UDS) is loaded</p>'); }); return
I'm trying to attach a function directly to a change event in jQuery, but
I have a select menu that looks like this: <select id ="cal-category-select"> <option value="/event-sort/list/2009/9/sports/">Sports
My markup for contenteditable element is as below: <iframe class=rich_text> <html style=background:none transparent;> <head></head>
I want to wrap an existing click event in some extra code. Basically I
Problem: Creating an Element on a button click then attaching a click event 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.