Skip to content

Function for select/update a option from a Select box #47

Description

@ericdallo

How about a function that i can get the selected option from a select input or set as selected an option from a given select

Example:

<select>
    <option value="SP">Sao Paulo</option>
    <option value="RJ">Rio de Janeiro</option>
    ...
</select>
$('input[type=select]').select('SP');

// option: SP
var selectedOption = $('input[type=select]').selected();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions