How can one attach to errorPlacement as a callback function in Script# using the Script# validate library?

StackOverflow https://stackoverflow.com/questions/13993978

  •  11-12-2021
  •  | 
  •  

Question

There is no such property errorPlacement within the class jQueryApi.Validation.jQueryValidatorOptions and the class is sealed so I can't extend. Any suggestions?

One can find the validation options on http://docs.jquery.com/Plugins/Validation/validate#toptions

Was it helpful?

Solution

Update the sources... see https://github.com/nikhilk/scriptsharp/tree/cc/src/Libraries/jQuery/jQuery.Validation. API declarations can always use contributions to help fix/complete.

Or temporarily use Script.SetField to do it the late-bound way.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top