Javascript examples for jQuery Selector:attribute value
select element with attribute escaping :
<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>