Need advice on how to remove button on other HTML pages
Hi all,
I've created a contact page with help of jQuery and when click on button, it pops up with fadeToggle effect.
Now the button appears on all my html pages, which I don't want to. How could I remove them from all other pages except from my contact page?
$('html').addClass('js');
var contactForm = {
container: $('#contact'),
config:{
effect:'fadeToggle',
speed:500
},
//same thing as constructor method and gets everything moving
init: function(config){
$.extend(this.config, config);
$('<button></button>', {
text:'Bla bla'
})
.insertAfter('article:first')
//this is revering to the contactForm
.on('click', this.show);
},
Please help me out.