Find and parse url in dom-element value using RegExp and jQuery - Javascript RegExp

Javascript examples for RegExp:RegExp test

Description

Find and parse url in dom-element value using RegExp and jQuery

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.9.1.js"></script> 
      <script type="text/javascript">
    $(function(){//from   w  ww  .j  ava  2  s  .  c  om
var x = $('param[name=movie]').val().split('=')[1];
console.log(x);
    });

      </script> 
   </head> 
   <body> 
      <param name="movie" value="/Flash/Dg_Inverse.swf?secEncCode=a">  
   </body>
</html>

Related Tutorials