2017 © Pedro Peláez
 

library jqueryselectedoption

image

tobya/jqueryselectedoption

  • Thursday, April 5, 2018
  • by tobya
  • Repository
  • 2 Watchers
  • 1 Stars
  • 16 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

SelectedOption

Allows all Select Form elements to specify an initial value as a 'data-SelectedOption' attribute on the select tag., (*1)

Note: Backward Comptatibility Break select attribute renamed to 'data-SelectedOption' instead of 'data_SelectedOption (dash instead of underbar) to match HTML5 custom attribute specifications (i.e. now the html will validate)., (*2)

html, (*3)

<select name="select"  data-SelectedOption="3">
  <option value="ERROR" data-noscriptitem>ERROR: If you see this an error has occured</option>
  <option value="1">Banana</option>
  <option value="2">Apple</option>
  <option value="3">Pear</option>
  <option value="4">Orange</option>

</select>

javascript, (*4)

<script type="text/javascript">

  $('Document').ready(function(){

        $('Select').SelectedOption();

    });
</script>

Option 3 Pear will be selected., (*5)

Demo, (*6)

The Versions

05/04 2018

0.1.3

0.1.3.0

  Sources   Download

05/04 2018

0.1.4

0.1.4.0

  Sources   Download

05/04 2018

0.1.5

0.1.5.0

  Sources   Download

05/04 2018

0.1.6

0.1.6.0

  Sources   Download

05/04 2018

0.1.7

0.1.7.0

  Sources   Download

05/04 2018

0.1.1

0.1.1.0

  Sources   Download

05/04 2018

0.1.2

0.1.2.0

  Sources   Download

25/07 2016

dev-master

9999999-dev https://github.com/tobya/jquerySelectedOption

Simple Combo box selected item chooser

  Sources   Download

MIT

jquery select combobox