Skip to content

Commit

Permalink
Replaced jquery "attr" with "prop"
Browse files Browse the repository at this point in the history
jQuery's ':checked' selector doesn't work properly when the input's checked attribute is set through "attr". It works fine when using "prop".
  • Loading branch information
GabeHiemstra authored Jul 12, 2016
1 parent 7cdb5a8 commit 88dae5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@
});

matchInput
.attr('checked', true)
.siblings('input').attr('checked', false);
.prop('checked', true)
.siblings('input').prop('checked', false);

container
.trigger('set.rating', matchInput.val())
Expand Down

0 comments on commit 88dae5c

Please sign in to comment.