jeudi 29 décembre 2016

>= and <= signs getting error in thymeleaf

javascript compound if condition cannot processed in thymeleaf although i wrapped in "CDATA".

<script  th:inline="javascript">
    /*<![CDATA[*/
         if(value =< 0 && value >= 100){
              return 'Please enter a value between 0 to 100';
         }
 /*]]>*/
</script>

I am getting error "Uncaught SyntaxError: Unexpected token <"

Aucun commentaire:

Enregistrer un commentaire