
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
chosen-readonly
Advanced tools
Chosen Readonly is a plugin that enables the support of the readonly attribute for chosen selects.
yarn add chosen-readonly
npm install chosen-readonly
bower install chosen-readonly
# Gemfile
source 'https://rails-assets.org' do
gem 'rails-assets-chosen-readonly'
end
# app/assets/javascripts/application.js
/*
*= require chosen
*= require chosen-readonly
*/
/* Makes elements readonly if they already have the readonly attribute */
$('select').chosen().chosenReadonly();
/* Sets all elements as readonly */
$('select').chosen().chosenReadonly(true);
/* Remove readonly from all elements */
$('select').chosen().chosenReadonly(false);
/* Anytime you want to trigger the readonly check just run */
$('select').trigger('chosen:updated');
Created by Weston Ganger - @westonganger
Plugin based off off this jsFiddle by @eirc
FAQs
Readonly support for Chosen selects
The npm package chosen-readonly receives a total of 16 weekly downloads. As such, chosen-readonly popularity was classified as not popular.
We found that chosen-readonly 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.