var form_data = {
username: $("#username").val(),
password: $("#password").val(),
is_ajax: 1
};
$.ajax({
type: "POST",
url: action,
data: form_data,
success: function(response) {
if (response==username) {
I want to access username variable that i have declared in form_data variable. How can i? i am using $("#username").val() but i want to access the variable.
response==form_data.usernameform_data.username?