Decode input field value - Javascript jQuery

Javascript examples for jQuery:Form Input

Description

Decode input field value

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> 
  <script>
         $(document).ready(function(){
            $('#decod').on('click',function(){
               var valu = $('#deco').val();
               $("#output").text(decode(valu));
            });//  w w w  .  j  a va2  s  . c  om
         });
      
      </script> 
 </head> 
 <body> 
  <input type="text" id="deco"> 
  <button id="decod">decode</button> 
  <div id="output"></div>  
 </body>
</html>

Related Tutorials