select element with attribute escaping : - Javascript jQuery Selector

Javascript examples for jQuery Selector:attribute value

Description

select element with attribute escaping :

Demo Code

ResultView the demo in separate window

<html lang="en">
   <head></head>
   <body translate="no"> 
      <input type="text" data-exp="th:field=*{recipientName}" th:field="*{recipientName}"> 
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 
      <script>
      $("[th\\:field='*{recipientName}']").css('border','1px solid red');
    /*from w  w w . j  av  a2 s .c o m*/
      </script>  
   </body>
</html>

Related Tutorials