PHPackages                             tobya/jqueryselectedoption - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. tobya/jqueryselectedoption

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tobya/jqueryselectedoption
==========================

Simple Combo box selected item chooser

11.9k2JavaScript

Since Sep 13Pushed 5y ago2 watchersCompare

[ Source](https://github.com/tobya/jquerySelectedOption)[ Packagist](https://packagist.org/packages/tobya/jqueryselectedoption)[ RSS](/packages/tobya-jqueryselectedoption/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SelectedOption
==============

[](#selectedoption)

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

**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).

html

```

  ERROR: If you see this an error has occured
  Banana
  Apple
  Pear
  Orange

```

javascript

```

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

        $('Select').SelectedOption();

    });

```

Option 3 Pear will be selected.

[Demo](http://tobya.github.io/jquerySelectedOption/demo/demo.html)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a881e781ccf5267bc2c9153c0485a6b7b0fbfeaf212dcfcca6a4dd18885a48ee?d=identicon)[tobya](/maintainers/tobya)

---

Top Contributors

[![tobya](https://avatars.githubusercontent.com/u/325502?v=4)](https://github.com/tobya "tobya (47 commits)")[![NickDickinsonWilde](https://avatars.githubusercontent.com/u/92694?v=4)](https://github.com/NickDickinsonWilde "NickDickinsonWilde (2 commits)")

### Embed Badge

![Health badge](/badges/tobya-jqueryselectedoption/health.svg)

```
[![Health](https://phpackages.com/badges/tobya-jqueryselectedoption/health.svg)](https://phpackages.com/packages/tobya-jqueryselectedoption)
```

###  Alternatives

[oxid-esales/personalization-module

Econda Personalization &amp; Analytics module for the OXID eShop

174.8k](/packages/oxid-esales-personalization-module)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
