Adding Two Buttons to Table View
Posted: 2022-07-24 07:51
Hello,
I have created this BadIP-TV.js file in Hooks to run the two scripts, for the new created buttons in the Table View.
The problem both buttons run the same file http://WebSite/alerts/BadIP.php
Would you please assist with the Functions and IDs .. THANK YOU
BadIP-TV.js
jQuery(function(){
jQuery('#Filter').after('<button class="btn btn-default" type="button" id="filter-button"> Generate IP Groups</button>');
jQuery('button[id=filter-button]').click(function(){
window.location = 'http://WebSite/alerts/BadIPGroup.php';
});
});
jQuery(function(){
jQuery('#Filter').after('<button class="btn btn-default" type="button" id="filter-button"> Generate IPs</button>');
jQuery('button[id=filter-button]').click(function(){
window.location = 'http://WebSite/alerts/BadIP.php';
});
});
I have created this BadIP-TV.js file in Hooks to run the two scripts, for the new created buttons in the Table View.
The problem both buttons run the same file http://WebSite/alerts/BadIP.php
Would you please assist with the Functions and IDs .. THANK YOU

BadIP-TV.js
jQuery(function(){
jQuery('#Filter').after('<button class="btn btn-default" type="button" id="filter-button"> Generate IP Groups</button>');
jQuery('button[id=filter-button]').click(function(){
window.location = 'http://WebSite/alerts/BadIPGroup.php';
});
});
jQuery(function(){
jQuery('#Filter').after('<button class="btn btn-default" type="button" id="filter-button"> Generate IPs</button>');
jQuery('button[id=filter-button]').click(function(){
window.location = 'http://WebSite/alerts/BadIP.php';
});
});