/
Using JQuery in Page Extensions
Using JQuery in Page Extensions
Here is a sample page extension making use of Jquery 1.4.2 minified.
Process
Load Setup
Click Page Extensions
Click on Add
Enter a Name
Enter the Page that should be affected (i.e. ticket/add)
Enter the following sample script
var ticketTitle = jQuery("input").filter(function(index) {return (this.id == 'Ticket.Title')}); var ticketComment = jQuery("textarea").filter(function(index) {return (this.id == 'Comment')}); ticketTitle.attr('value', 'Title jQuery Test'); ticketComment.attr('value', 'Comment jQuery Comment');
Click Save
, multiple selections available,
Related content
Inserting Values Into Fields Using Page Extensions
Inserting Values Into Fields Using Page Extensions
More like this
Page Extension with NVelocity Variables
Page Extension with NVelocity Variables
More like this
Adding a Page Extension
Adding a Page Extension
More like this
Page Extensions
Page Extensions
More like this
Calling Custom Code From a Page Extension
Calling Custom Code From a Page Extension
More like this
Page Extension Kickstarters
Page Extension Kickstarters
More like this