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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:12:55+00:00 2026-06-02T01:12:55+00:00

hi this is my click function. It works for chrome and firefox well but

  • 0

hi this is my click function. It works for chrome and firefox well but do anything on IE9

When i click dropdownbox dont run click function on IE9.

Script:

$('.lstKuralTipleri option').click(function() {

    switch ($('.lstKuralTipleri :selected').index()) {
    case 0:
        $('.SartliFormatDegereGore').slideDown();
        $('.SartliFormatTariheGore').slideUp();
        break;
    case 1:
        $('.SartliFormatTariheGore').slideDown();
        $('.SartliFormatDegereGore').slideUp();
        break;
    }
});​

Aspx

<asp:ListBox style="padding-top:3px" runat="server" ID="lstKuralTipleri" CssClass="lstKuralTipleri" Width="805px">
     <asp:ListItem Text="> Kolon değerine göre" Selected="True"/>
     <asp:ListItem Text="> Tarihe göre"/>
 </asp:ListBox>
  • 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-02T01:12:58+00:00Added an answer on June 2, 2026 at 1:12 am

    The click event on <option> isn’t standard and thus not supported in all browsers.
    You should use the onchange event instead of onclick.

    You can read all the Q&A in this search, this is the subject for all of them…

    Updated code:

    $('select.lstKuralTipleri').change(function() {
        switch ($(this).index.index()) {
        case 0:
            $('.SartliFormatDegereGore').slideDown();
            $('.SartliFormatTariheGore').slideUp();
            break;
        case 1:
            $('.SartliFormatTariheGore').slideDown();
            $('.SartliFormatDegereGore').slideUp();
            break;
        }
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This picture upload script does not work in google chrome but works well in
This function works perfectly on IE, Firefox and Chrome but when on the iPhone,
This code works fine in IE8/7 and Firefox... But in Google Chrome i got
I have this code which works nice in Chrome and Firefox, but on IE
This script is working perfectly with Chrome and Safari, but Firefox is bugging up
This piece of code works in Firefox and IE: $('input').click(function() { $(group).animate({ 'width' :
My issue: This code works in firefox chrome and safari but not in IE
This works. $(document).ready(function(){ $(.items article).click(function(){ window.location=$(this).find(a).attr(href); return false; }); }); However , when the
This function only works once, when I click an anchor element again, nothign happens.
I am testing this simple code below and it works... $(document).ready( function() { $('.show-modal').click(

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.