i am updating record through jquery, and once data is updated how can one display success/failure message.
i have used following code to update data through jquery,
var data = {user_id:userId, user_type:$("#userType").val()};
var url = "<%= url_for(updateUser_path)%>";
$.get(url, data)
thanks,
Respond with json once you update data, and then process normally with jquery, for example: