How to send Codeigniter CSRF token to angularjs data method How to send Codeigniter CSRF token to angularjs data method codeigniter codeigniter

How to send Codeigniter CSRF token to angularjs data method


Using only the first input, you can get the name and value attributes this way:

# Name$("#csrval").attr('name');# Value$("#csrval").attr('value');