Support » Plugin: Brilliant Web-to-Lead for Salesforce » Blank item for select

  • Resolved semikola

    (@semikola)


    Hi there,

    I’d like to insert a blank item into the top of options for the select drop-down menu.

    So that the user won’t leave the first option selected.

    Is that possible? If yes how?

    Thanks a lot,

    Simone

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter semikola

    (@semikola)

    I solved it with a bit of jQuery.

    I leave it here for people with the same need!

    jQuery(document).ready(function($){
       $(window).load( function() {
         var $select = jQuery('.salesforce_w2l_lead select');
         $select.prepend("<option value=''></option>").val('');
       });
    });

    Cheers,

    Simone

    • This reply was modified 1 year, 9 months ago by semikola.
    Plugin Author Nick Ciske

    (@nickciske)

    No jQuery needed, this is covered in the FAQ

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blank item for select’ is closed to new replies.