add condition in jquery.tmpl.js

Solved:

Add condition in tmpl jquery and remember its have closing tag

{{if colName==''}}
      <a class="hidden" href="${colName}">View</a>
{{else}}
      <a class="visible" href="${colName}">View</a>
{{/if}}

Comments

Popular posts from this blog

Add Image through base64 on PDF in itextsharp

Set span value using jquery and javascript

how to insert text and tags at the cursor CKEDITOR