Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $("button.delete").click(function(){
- if($(this).prev(".database")) {
- var id = $(this).prev(".database").text();
- window.location = '/dashboard/delete-mysql.php?database=' + id;
- } else if($(this).prev(".username")) {
- var id2 = $(this).prev(".username").text();
- window.location = '/dashboard/delete-mysql.php?username=' + id2;
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement