jquery: show data after change event

Posted by klox on Stack Overflow See other posts from Stack Overflow or by klox
Published on 2010-06-11T04:40:04Z Indexed on 2010/06/11 4:42 UTC
Read the original article Hit count: 214

Filed under:
|

i have this code:

<script>
$("#mod").change(function() {
 var matches=str.match(/(EE|[EJU]).*(D)/i);
         $.ajax({
                  type="post",
                  url="process.php",
                  data="matches",
                  cache=false,
                  async=false,
                  success= function(res){
                                                                                 $('#rslt').replaceWith("<div id='value'><h6>Tuner range is" + res + " .</h6></div>");
   return this;
                              }
                        });
   return false;
});
 </script>

i want this code can show the result normally..where is my fault?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX