Set a class
attribute to your body tag.
<body class="PageType">
And then in your script..
$(function(){
if($('body').is('.PageType')){
//add dynamic script tag using createElement()
OR
//call specific functions
}
});
More Related Contents:
- PLEASE assist me.. RE: *FORM FIELDS* I want to Hide() my "type=text box" until the Other option is chosen in the dropdown option
- Dynamically adding div on button click and changing Id of each?
- How to make page loaders/animations/transitions
- Get specific text from html tag jquery [duplicate]
- How to change the image while sharing the content to the social networks? [duplicate]
- How to detect Ctrl+V, Ctrl+C using JavaScript?
- How to show Page Loading div until the page has finished loading?
- How to reload current page without losing any form data?
- Jquery load() only working in firefox?
- How do I add an “Add to Favorites” button or link on my website?
- Play an audio file using jQuery when a button is clicked
- Drop-down box dependent on the option selected in another drop-down box
- Getting Bootstrap’s modal content from another page
- Sort an html list with javascript
- Run change event for select even when same option is reselected
- JQuery Slider, how to make “step” size change
- How to move table row in jQuery?
- How to build simple tabs with jQuery?
- Is it possible to append a div inside an SVG element? [duplicate]
- How to get the html of a div on another page with jQuery ajax?
- How can I get all a form’s values that would be submitted without submitting [duplicate]
- Jquery click event not firing on the element created dynamically using jquery
- Calculate Position of selected text javascript/JQuery?
- Adding onClick event dynamically using jQuery
- Get content of span
- Changing “src” attribute of
- Wrapping lists into columns
- Close a SELECT dropdown list programmatically with Javascript/jQuery
- Jquery change text between two elements
- Possible to reverse a css animation on class removal?