Browse files

Selectmenu: Remove colons from labels, annoying for screenreader-user…

…s. Cleanup whitespace.
  • Loading branch information...
1 parent 7a05c65 commit 15032d17d921602c156fcb2ef4f6be5408774e41 @jzaefferer jzaefferer committed Dec 9, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 demos/selectmenu/default.html
  2. +1 −1 ui/jquery.ui.selectmenu.js
View
6 demos/selectmenu/default.html
@@ -37,7 +37,7 @@
<form action="#">
<fieldset>
- <label for="speed">Select a speed:</label>
+ <label for="speed">Select a speed</label>
<select name="speed" id="speed">
<option value="Slower">Slower</option>
<option value="Slow">Slow</option>
@@ -48,7 +48,7 @@
<br />
<br />
<br />
- <label for="files">Select a file:</label>
+ <label for="files">Select a file</label>
<select name="files" id="files">
<optgroup label="Scripts">
<option value="jquery">jQuery.js</option>
@@ -62,7 +62,7 @@
<br />
<br />
<br />
- <label for="number">Select a number:</label>
+ <label for="number">Select a number</label>
<select name="number" id="number">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
View
2 ui/jquery.ui.selectmenu.js
@@ -235,7 +235,7 @@ $.widget( "ui.selectmenu", {
if ( !this.isOpen ) {
return;
}
-
+
var id = this._getSelectedItem().find( "a" ).attr( "id" );
this.isOpen = false;
this._toggleAttr();

0 comments on commit 15032d1

Please sign in to comment.