<form action="#"> <div class="form-row"> <label for="name">Name</label> <input data-errormessage="Please enter your Name." required="" type="text" id="name" /> </div> <div class="form-row"> <label for="email">email</label> <input data-errormessage='{"valueMissing": "Please enter your email adress.", "typeMismatch": "Your email is not correct."}' required="" type="email" id="email" /> </div> <div class="form-row"> <input type="submit" /> </div> </form>
webshim.setOptions('forms', { //show custom styleable validation bubble replaceValidationUI: true }); //start polyfilling webshim.polyfill('forms');