Replacing email placeholder in ajax call - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:ajax

Description

Replacing email placeholder in ajax call

Demo Code

ResultView the demo in separate window

<html lang="en">
   <head> 
      <script src="https://code.jquery.com/jquery.min.js"></script> 
      <script>
        $(function() {//from w w w.  j ava  2 s  .co  m
            $.get('email.html', function(data) {
                console.log(1, typeof data);
                console.log(2, data);
                console.log(3, data.replace('##title##', 'This is a title'));
            });
        });
    
      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials