$. Post () in javascript-jq cannot be used in IE. How can this problem be solved!

Source: Internet
Author: User
{Code ...}
$. Post ("/dadashou/index. php/Companymanage/findBrand_ajax ", {kw: $ this. val (). trim (), cache: new Date (). getTime ()}, function (data) {if (data! = 0) {$ brandhidden. empty (); var html = ""; for (var I = 0; I
  
   
'+ Data [I] ['brand'] +'
   

'+ "\ N";} html + =" ----- Be sure to select ----- from the drop-down list -----"; // Replace the loading Dynamic Graph with the content inline (html); inline ({display: 'block'});} else {$ this. siblings ('input [name = "brands"] '). val ($ this. val (). trim (); $ this. siblings ('. brandden den '). fadeOut ('fast '); $ this. data ('OK', true);} return false ;}, "json ");

Reply content:
$. Post ("/dadashou/index. php/Companymanage/findBrand_ajax ", {kw: $ this. val (). trim (), cache: new Date (). getTime ()}, function (data) {if (data! = 0) {$ brandhidden. empty (); var html = ""; for (var I = 0; I
  
   
'+ Data [I] ['brand'] +'
   

'+ "\ N";} html + =" ----- Be sure to select ----- from the drop-down list -----"; // Replace the loading Dynamic Graph with the content inline (html); inline ({display: 'block'});} else {$ this. siblings ('input [name = "brands"] '). val ($ this. val (). trim (); $ this. siblings ('. brandden den '). fadeOut ('fast '); $ this. data ('OK', true);} return false ;}, "json ");

$. Post () is usable because your jQuery version is too high.

It seems that your code is incorrect.
Jquery helps you solve compatibility issues. Therefore, you do not need to consider compatibility issues when using jquery.

$this.val().trim()This sentence may be faulty. It is generally used in jquery.$.trim($this.val())This form

Check whether your $ this object is correct.
$. Ajax cannot be used.

$.ajax({  type: 'POST',  url: url,  data: data,  success: success,  dataType: dataType});

Http://www.lxway.com/99016642.htm

Use jQuery of 1.xx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.