PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Enhanced User Interface (chosen.jquery.min.js) appears/loads before jquery?

  1. Hello,

    I'm using Enhanced User Interface (chosen.jquery.min.js) in a form. However, when displaying the form all of the options appear under the select box. I've inspected the js files in Chrome and it looks like Chosen script loads before the jquery?

    I've switched to eleven twelve and turned off ALL the plugins, and turned on the Gravity Forms and that's what I am getting. Screenshot here

    WP: 3.5.1.
    GF: 1.6.12

    Any ideas?
    Thanks, Dasha

    Posted 11 years ago on Thursday March 7, 2013 | Permalink
  2. Dasha, the scripts in that view are alphabetical; I don't think that is the order they're loaded in. If you provide a link to the live site, we can take a look. We load the chosen script with a dependency on jQuery, so in a normal WordPress (un-customized) site, it will load in the correct order. If you're having trouble, please post a link to the site and let us know what is not working for you.

    Posted 11 years ago on Tuesday March 12, 2013 | Permalink
  3. Hello Chris,

    You're right! Apologies.. I've inspected the page source and the chosen.jquery.min.js script does indeed appear after jquery.

    I forgot to mention that I'm using latest jquery and jqueryui libraries. I load them in functions.php as following:

    add_action( 'wp_enqueue_scripts', 'dlfrw_enqueue_scripts', 1 );
    function dlfrw_enqueue_scripts() {
    	// general jquery & other libraries include
    	if( !is_admin() ){
    		wp_register_script('jquery', '//', false, '1.9.1');
    		wp_register_script('jqueryui', '//', array('jquery'), '1.10.0');

    There doesn't seem to be any JS errors, but it still looks very broken as per perviously provided screen shot.

    Any idea how it can be fixed?

    Many thanks, Dasha

    Posted 11 years ago on Friday March 15, 2013 | Permalink
  4. Richard Vav

    You are including jQuery v1.9 from google, there have been a couple of issues reported with this version as it was a major re-write and they dropped a lot of features. Gravity forms generally supports the version of jQuery that ships with wordpress which is currently 1.8.3 so try changing your jQuery call to that version and see if it makes any difference.

    Posted 11 years ago on Friday March 15, 2013 | Permalink
  5. Hello,

    @richardvav thank you for letting me know. I've commended out my code with custom jquery completely. So all the scripts are now coming from WP.

    I'm still experiencing the problem that Enhanced User Interface fields still look very broken.

    The staging websites is at
    htaccess login details (user/password): adm/adm

    I would hugely appreciate any help. I'm really stack and have no idea what I'm doing wrong :( All seems to be working fine in the admin preview of a form, but not on the front end.

    Many thanks, Dasha

    Posted 11 years ago on Tuesday March 19, 2013 | Permalink
  6. Dasha, adm/adm did not work for me for the Apache basic auth. Can you check that please? I'd like to take a look.

    Posted 11 years ago on Thursday March 21, 2013 | Permalink