KnockoutJS/ jQuery tmpl with jQuery Validate

Quick post; I found tonight that my jquery validate was letting my knockoutjs method run, even if the form wasn’t valid. This turned out to be because you need to set “uniqueName: true” on any form fields you want validated. Eg

<input data-bind="value: ChargedShipping, uniqueName: true" class="required number"/>
  1. #1 by Tyler on July 28, 2011 - 02:36

    Thanks a ton … I think you just saved my a lot of time :)

(will not be published)