<input type="text" name="firstName" id="firstName" />
<script>console.log(jQuery("[name=firstName]"));</script>
<input type="text" name="First Name" id="First Name" /><script>console.log(jQuery("[name=First Name]"));</script>
<input type="text" name="firstName" id="firstName" />
<script>console.log(jQuery("[name=firstName]"));</script>
<input type="text" name="First Name" id="First Name" /><script>console.log(jQuery("[name=First Name]")); // not working.console.log(jQuery("[name='First Name']")); // working fine.</script>
var qXHR = jQuery.ajax({url:url,cache: false,type:"POST",data:args});
qXHR.onreadystatechange = function() {
if(qXHR.readyState == 3){
//do some thing
}
else if(qXHR.readyState == 4){
//do some thing
}
}