Double Click Select/Option control in Firefox

Posted on 2011-10-15
Last Modified: 2012-05-12
I have a created a dynamic screen editor where the user can add fields to a screen and move them around.  These can be text boxes, check boxes or a drop down list (select/option).  I am using jQuery and I have added the following:

        $('[PT_TYPE]').dblclick(function ()
            // This sets the system into edit mode for this element.

Open in new window

The problem is that this works fine in all web browsers but Firefox.  I can't get it to recognize the double click on the dropdown lists.  Any suggestions?

Cory Jorgensen
Bitco Software, LLC
Question by:derftoy
    LVL 15

    Expert Comment

    do you get errors in firebug console?
    LVL 8

    Expert Comment

    Do you have a link so we can test it? Or even a sample of the html code that does work, and that does not ?

    LVL 8

    Accepted Solution

    select elements do not respond to 'dblclick' from what I've researched, but they will fire on ondblclick (I've only tested with multiple set on the select, and dbl clicking options.. )

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now