You can use jQuery
$("select").change(function () {
if($("select option:selected").length > 3) {
//your code here
}
});
More Related Contents:
- problem with and :after with CSS in WebKit
- Options with display:none not hidden in IE
- How to indent multiple levels of select optgroup with CSS?
- HTML5 localStorage size limit for subdomains
- How to change font-family of drop down’s list item?
- How to change the text color of first select option
- How can I set the background color of in a element?
- Multiple select in Safari iOS 7
- Can't get footer image to display in IE8?
- Disabling Chrome Autofill
- Chrome ignores autocomplete=”off”
- Mobile Redirect using htaccess
- What is the difference between HTML div and span elements?
- SVG drop shadow using css3
- How to embed a SWF file in an HTML page?
- Uppercase or lowercase doctype?
- Allow specific tag to override overflow:hidden
- HTML combo box with option to type an entry
- Can I nest button inside another button?
- Markup for postal addresses
- How to get tiles centered and left-justified at the same time
- CSS Zigzag Border with a Textured Background
- Filter Extensions in HTML form upload [duplicate]
- “break-inside: avoid-column” doesn’t work in Firefox
- CSS/HTML: What is the correct way to make text italic?
- CSS Border on PNG image with transparent parts
- HTML Title Image
- Create tree view with horizontal and vertical lines showing the connectivity using css
- How can I get a specific number child using CSS?
- HTML5 drag and copy?