kanduvisla/better_forms — comment on commit 4bc25bf7e78cbebff431917a73c1bf6865759488
File:  line 0
By davjand:

I was just trying to fix the same issue, and came up with the below which seems like a simpler solution unless I'm missing something:

```javascript
if ($(this).attr('selected')==true) li.addClass('selected');
```