Input str replace - Javascript jQuery

Javascript examples for jQuery:Form Input

Description

Input str replace

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.4.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){//from w  ww .ja  va 2 s .  c om
var replit = $('input[name=address1]').val().replace("/"," m. ");
$('input[name=address1]').val(replit);
    });

      </script> 
   </head> 
   <body> 
      <input type="text" class="text" name="address1" id="address1" value="street_name 5/47">  
   </body>
</html>

Related Tutorials