Jquery insertafter multidimensional array - Javascript jQuery

Javascript examples for jQuery:Array

Description

Jquery insertafter multidimensional array

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://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/*from  ww w  .  j  a v a2  s.  c  om*/
$('input[name^="user\\[name\\]"]').val('We got the right selector!')
    $('<a href="#">Example link</a>').insertAfter('input[name^="user\\[name\\]"]')
    });

      </script> 
 </head> 
 <body> 
  <input name="user[name][1][1]">  
 </body>
</html>

Related Tutorials