
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
select-transformer
Advanced tools
Transforms HTML select elements into groups of radio buttons or checkboxes
Transforms HTML select elements into groups of radio buttons or checkboxes.
The humble <select> element provides a good interface for selecting one or more named options, but we often want to display these options using checkboxes or radio buttons. Rather than having separate implementations for each of these, this module allows you to just use <select>s and it will transform them into groups of inputs and handle the two-way binding to keep them in sync.
import SelectTransformer from 'select-transformer'; // see Module Formats below
new SelectTransformer(document.querySelector('select#my-select'));
The select.multiple property is used to decide whether to use radio buttons or checkboxes.
<optgroup> elements are wrapped in an <div class="st-group"> element that you can use for styling.
There is some very basic styling in dist/assets/default.css that you can use as a base.
$('select#my-select').selectTransformer();
SelectTransformer uses a minimal set of jQuery fuctions, which could easily be provided by another library (such as domquery). You can use SelectTransformer.setDOM() to provide a jQuery-like object, but this hasn't been tested.
You will find all the popular formats in dist/.
Use the handy ember-cli addon called ember-select-transformer.
FAQs
Transforms HTML select elements into groups of radio buttons or checkboxes
We found that select-transformer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.