How to get the selected values?

Mohammad Sanati's Avatar

Mohammad Sanati

15 Apr, 2012 11:01 PM

I have a simple page with an input text box and a button. I want to get all the selected values in my button click. how can I do that?

thank you.

  1. 1 Posted by Jqo on 26 Aug, 2013 09:10 AM

    Jqo's Avatar

    You can use :
    __________
     $skillIds = $_POST['as_values_skillsID']; --> this is an array
     $skillArr = explode(',', $skillIds);
        
        foreach ($skillArr as $skill)
        {
         echo $skill;
         }
    ____

    Don forget to put (see bold), you can change the value of 'asHtmlID' :

     $(".as-input").autoSuggest(data.items,{selectedItemProp: "name", searchObjProps: "name",<b>asHtmlID: "skillsID" </b>});

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