This example validates an email address format and uniqueness (only firstname.lastname@example.org will work) when the input fires a 'change' event.
Note that the "server side" implementation is mocked out using mockjax, so you can see the entire implementation. Click the "Source Code" tab to see the code.
ic-post-toto post the email to the server when the input changes. It targets the enclosing div tag, using the
ic-targetattribute and the
closestsyntax. Because we need to replace the entire div to get the proper styling, the
ic-replace-targetattribute is set to