Submit form on selection from dropdown.

Matthew's Avatar

Matthew

19 Jun, 2010 02:03 PM

Hi guys,

Is there a way to submit your form directly from the dropdown list, as opposed to having to use a submit button?

I only require one entry in my text field so the multiple selections isnt necessary.

Any help would be greatfully received.

Kind regards
Mat.

  1. 1 Posted by Christopher Ray... on 13 Aug, 2012 10:31 PM

    Christopher Raymond's Avatar

    I'm trying to figure this out too, Matthew. If you have found the answer, could you please post it here or share it with me? Thanks!

  2. 2 Posted by Christopher Ray... on 13 Aug, 2012 11:07 PM

    Christopher Raymond's Avatar

    Okay, I figured it out. And as usual, I figured it out only after polluting the Interwebs with my question ;-)

    resultClick:function(data) { console.log(data.attributes.name); $("input[type=search]").val(data.attributes.name); $(this).submit(); }

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac