Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
An Introduction of jQuery Template
WhatsApp
Hiren V
11y
6.9
k
0
0
25
Blog
JQueryTemplateExample.zip
"jQuery templates are HTML markup with inline JavaScript expressions that are used to populate values in the markup. The jQuery Template plug-in applies data to the template and renders the output into the document object model (DOM)."
Here I am describing an example of JQuery template.
Here I have used two libraries, jquery-1.10.2.min.js and jquery.tmpl.min.js. You can download both the libraries from
Download jQuery
and
jquery.tmpl.min.js
The actual template is included by SCRIPT tag with a special MimeType. Here the mimetype is unknown because when the browser encounters the SCRIPT tag with unknown mimetype, it ignores the contents of the tag.
$("#carTemplate").tmpl(Cars)
The above line selects the "carTemplate" and fills it with the Cars objects.
Now you can clearly understand the definition which has been given at the starting point of this article.
An Introduction of jQuery Template
Up Next
Using Templates In Kendo DropDownTree
Ebook Download
View all
Frontend Developer Interview Questions and Answers
Read by 941 people
Download Now!
Learn
View all
Membership not found