Advertisement
Guest User

Untitled

a guest
Feb 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.57 KB | None | 0 0
  1. $('#traziZivotinju').on('click', function (e) {
  2.     /*
  3.     $('#odabirZupanije').on('click',function() {
  4.         console.log($(this).val());
  5.     });
  6.  
  7.     $('#odabirZivotinje').on('click',function() {
  8.     console.log($(this).val());
  9.     });
  10.     */
  11.     var odbrZupanija= document.getElementById("odabirZupanije").value;
  12.    
  13.     var odbrZivotinja = document.getElementById("odabirZivotinje").value;
  14.     // Get the element by their class name
  15.     // Get the element by their class name
  16.    
  17.     const elements = document.getElementsByClassName("oglasi");
  18.  
  19.     while (elements.length > 0) elements[0].remove();
  20.    
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement