title: Sending username and password using jquery ajax
body: <p>I want to send the username and password values which user types in html input elements to server to check if the username and password is valid or not when user click login button, using post request in <code>$.ajax(options)</code> method in jquery.</p>
  
  <p>But I don't know how to send the username and password to server. What option should I write in the <code>$.ajax(options)</code> method to get those values from server?</p>