Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
KnockoutJS Web Development

You're reading from  KnockoutJS Web Development

Product type Book
Published in Feb 2015
Publisher
ISBN-13 9781782161028
Pages 178 pages
Edition 1st Edition
Languages

The uniqueName binding


IE6 does not allow radio buttons to be checked if they don't have a name attribute. Most of the time this is irrelevant because your radio button elements will have the name attributes to put them into mutually-exclusive groups. However, if you didn't add a name attribute because it's unnecessary in your case, Knockout will internally use uniqueName on those elements to ensure they can be checked. Hopefully, none of us will have to use IE6 but just in case, add the uniqueName handler to the data-bind attribute, something like this if needed:

<input data-bind="value: newName, uniqueName: true" />
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}