This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // <select id="test1"> | |
| // <option value="1">a</option> | |
| // <option value="2">b</option> | |
| // <option value="3">c</option> | |
| // </select> | |
| document.getElementById('test1').addEventListener('change', function(event){ | |
| var that = this; // or event.target | |
| // if option has no value attribute, the event value returns the label | |
| console.log('value: ' + that.value + ' | label: ' + that.selectedOptions[0].label); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Syntax for Sublime Text | |
| LESS | |
| https://github.com/danro/LESS-sublime | |
| ------------------------------------------------------------------------------------- | |
| SASS | |
| https://sublime.wbond.net/packages/Sass | |
| ------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| You don't have to add "jpegtran-bin": "0.2.0" to package.json | |
| Remove node_modules folder if necessary | |
| Do npm install [email protected] | |
| Do npm install | |
| It worked for me. |
NewerOlder