ericmbarnard/Knockout-Validation — Issue #26: Can you get the element the data is bound to?
Author: grofit
Created: 2012-02-25 16:22:04+00:00
State: open

Not an issue exactly, but is there any way to get the element the data is bound to when getting the validation errors?

I am currently using Jquery Validation with callbacks to get another library display nice tooltip validation errors, but it is not nice and I would rather drive the validation from the models not the UI elements.

So I really like the approach of pushing the validation down to the models, but ideally I need a way to tie the error I get to a given element in the UI. So is there a way to do this, or if not is it a feature that I could possibly request be added?