choosing single quotes for the script var specification

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

choosing single quotes for the script var specification

aviennas_
Assuming the following sample block to evaluate a thymeleaf expression inside this jquery block. Is it possible to specify a single quote instead of a double quote for the generated text?

<script th:inline="javascript">
   $(document).ready(function() {
      $('#id').SomeType( {
        someprop: [
            {
               someattrib: /*[[${thyme}]]*/ 'placeholder'
            }
       ]
     } );
   } );
</script>
Reply | Threaded
Open this post in threaded view
|

Re: choosing single quotes for the script var specification

aviennas_
meaning having
someattrib: 'thyme-value'
instead of
someattrib: "thyme-value"