Welcome Guest, Not a member yet? Register   Sign In
Showing form validation errors individually using AJAX
#3

(07-26-2017, 07:35 AM)rtenny Wrote: Add the removeClass before you call the aja to validate

function patient_add(){
   // remove any previos error
   $('input[name="' + key + '"]').next().html(val).removeClass('has-error');

then do the ajax to validcate

i think it can't be done since the key and val are taken inside the ajax function
Reply


Messages In This Thread
RE: Showing form validation errors individually using AJAX - by nullstrike - 07-29-2017, 08:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB