Search Adoptable Animals | San Diego Humane Society (2024)

Yrs ' + petMonths + ' Months ' + petWeeks + ' Weeks'; } else if (petYears === null) { petAge = 'Age Unknown'; } else { var petAge = '' + petYears + ' Yrs ' + petMonths + ' Months ' + petWeeks + ' Weeks'; } var petIsCrossBreed = pets[i].Breed.IsCrossBreed; //console.log(petIsCrossBreed); if (petIsCrossBreed == true) { petIsCrossBreed = ' Cross'; } else { petIsCrossBreed = ''; } var petAnimalType = pets[i].AnimalType; if (petAnimalType === "Kitten") { var petAnimalType = "Cat"; } if (petAnimalType === "Puppy") { var petAnimalType = "Dog" } if (petAnimalType === "Chinchilla") { var petAnimalType = "Rodent" } if ((petAnimalType === "Crab") || (petAnimalType === "Fish") || (petAnimalType.toLowerCase().replace(/\s+/g, '') === "crab/fish") || (petAnimalType === "Goat") || (petAnimalType === "Insect") || (petAnimalType === "Arachnid") || (petAnimalType.toLowerCase().replace(/\s+/g, '') === "insect/arachnid") || (petAnimalType === "Sheep") || (petAnimalType === "Amphibian")) { var petAnimalType = "Other" } //var petBreedPrimary = pets[i].Breed.Primary.Name; var petBreedPrimary = pets[i].Breed.Primary; //var petBreed = petBreedPrimary + petIsCrossBreed var petBreed = petBreedPrimary; //var petLocation = pets[i].Location.PhysicalLocation.Name; var petLocation = pets[i].Location if (petLocation == 'San Diego Campus - 5480' || petLocation == 'San Diego Campus - 5485' || petLocation == 'San Diego Campus - 5495' || petLocation == 'San Diego Campus - 5525' || petLocation == 'San Diego Campus - Behavior Center' || petLocation == 'Mobile Adoption' || petLocation == 'Nursery - San Diego' || petLocation == 'San Diego Campus - 5500' || petLocation == 'Nursery - San Diego') { petLocation = 'San Diego Campus'; } else { petLocation = petLocation; } var petStatus = pets[i].Status; var petStatusClass; if (petStatus === 'Available For Adoption') { petStatus = 'Available On-Campus'; petStatusClass = 'on-site'; } else if (petStatus === 'Available for Adoption - In Foster') { petStatus = 'Available Off-Site In Foster'; petStatusClass = 'off-site'; } else if (petStatus === 'Available for Adoption - Waiting Space') { petStatus = 'Available On-Campus'; petStatusClass = 'off-site'; } else { petStatus == ''; petStatusClass = ''; } if ((petLocation === 'San Diego Campus') || (petLocation === 'San Diego Campus - 5500')) { petLocationClass = 'san-diego'; } else if (petLocation === 'El Cajon Campus') { petLocationClass = 'cajon'; } else if (petLocation === 'Escondido Campus') { petLocationClass = 'escondido'; } else if (petLocation === 'Oceanside Campus - Cats/Small Animals') { petLocationClass = 'oceanside'; } else if (petLocation === 'Oceanside Campus - Dogs') { petLocationClass = 'oceanside'; } else { petLocationClass = ''; } var petAgeGroupClass; var petNum = (petYears + "." + String(petMonths).padStart(2, '0')); if (petYears === null) { petAgeGroupClass = "young adult senior"; } else if (0.07 >= petNum) { petAgeGroupClass = "young"; } else if (petNum > 7.07) { petAgeGroupClass = "senior"; } else if (petNum <= 7.07) { petAgeGroupClass = "adult"; } //var petThumbUrlFunction = getPetThumb(); var petThumbUrl = pets[i].MainPhoto; //console.log(petThumbUrl); if (petThumbUrl == null) { petThumbUrl = 'https://www.sdhumane.org/assets/images/image-not-found.jpg'; } else { //petThumbUrl = pets[i].MainPhoto.Default; var petThumbUrlObj = pets[i].MainPhoto.default; //petThumbUrlObj = petThumbUrlObj.substring(0, petThumbUrlObj.length - 10); //console.log('petURLobj is ' + petThumbUrlObj) petThumbUrl = 'https://do31x39459kz9.cloudfront.net' + petThumbUrlObj; } var petUrl = 'https://www.sdhumane.org/adopt/available-pets/animal-single.html?petId=' + petId; writePetItems(); //goToAnchor('animalGallery'); jQuery('#backtotop').html('Back to Top'); } //for callback(); function writePetItems() { var petString = '

Search Adoptable Animals | San Diego Humane Society (1)

'; petString += '

' + petName + ''; petString += ' #' + petId + '

'; petString += '

' + petGender + '
'; if ((petAnimalType.toLowerCase() === "dog") && (pets[i].Breed.IsCrossBreed === true)) { petString += '

' + petBreed + ' Mix
'; } else { petString += '

' + petBreed + '
'; } petString += '' + petBreed + ''; petString += petAge; petString += '' + petNum + ''; petString += '
'; petString += '' + petLocation + ''; petString += '
'; petString += petStatus + '

'; if (petAnimalType.toLowerCase() === "guinea pig") { petString += 'guinea'; } else { petString += '' + petAnimalType.toLowerCase() + ''; } petString += '

Learn More

'; $('#animalGallery').append(petString); var BreedList = "

"; if ($("#breedchoice option:contains('" + petBreed + "')").length === 0) { $("#breedchoice").append(BreedList); } } console.log("Breed list done"); $(".breed.selection, .breed .trigger").attr("disabled", false).removeClass("disabled"); console.log("Total Pets: " + $("#animalGallery .pet-item").length); console.log("Visible Pets: " + $("#animalGallery .pet-item:visible").length); }); //getCats } //getSearchAnimalsAws(); $(document).ready(function() { $('.search-form select option:contains("All")').prop("selected", true); $('.search-form select option:contains("ALL")').prop("selected", true); !$('.search-form select option:contains("All")').prop("selected", false); !$('.search-form select option:contains("ALL")').prop("selected", false); $('.search-form input[type="text"]').val(''); $("#no-results").removeClass("visible"); console.log('getSearchAnimalsAws'); getSearchAnimalsAws(checkFilters); //check jQuery version if (typeof jQuery != 'undefined') { console.log(jQuery.fn.jquery); } //*** DISPLAY FILTER function TypeSearch() { // Name & ID var typingTimer; var doneTypingInterval = 300; // 1 second/1000 ms var input = $("#searchName, #searchId"); // Your input input.on("keyup paste", function() { clearTimeout(typingTimer); typingTimer = setTimeout(doneTyping, doneTypingInterval); }); input.on("keydown", function() { clearTimeout(typingTimer); }); // user is done function doneTyping() { let searchValue = $("#searchName").val().toString().toLowerCase(); let searchId = $("#searchId").val().replace(/[^0-9.]/g, '').toString(); if (searchValue !== '') { $("#search-nav .selection.name").addClass("selected"); $('.search-form select option:contains("ALL")').prop("selected", true); !$('.search-form select option:contains("ALL")').prop("selected", false); $(".pet-item").removeClass("petname-match"); $(".pet-item").each(function() { var petName = $(this).find(".petName").text().toString().toLowerCase(); if (petName.indexOf(searchValue) > -1) { $(this).addClass("petname-match").removeClass("hidden-pet"); } if (!$(this).hasClass("petname-match")) { $(this).addClass("hidden-pet"); } }); } else { $("#search-nav .selection.name").removeClass("selected"); $(".pet-item").removeClass("petname-match"); } if (searchId !== '') { $("#search-nav .selection.number").addClass("selected"); $('.search-form select option:contains("ALL")').prop("selected", true); !$('.search-form select option:contains("ALL")').prop("selected", false); $(".pet-item").removeClass("petid-match"); $(".pet-item").each(function() { var petId = $(this).find(".petId").text().toString(); if ((petId).includes(searchId)) { $(this).addClass("petid-match").removeClass("hidden-pet"); } if (!$(this).hasClass("petid-match")) { $(this).addClass("hidden-pet"); } }); } else { $("#search-nav .selection.number").removeClass("selected"); $(".pet-item").removeClass("petid-match"); } // NO RESULTS if ($("#animalGallery").height() > 80) { $("#no-results").removeClass("visible"); } else { $("#no-results").addClass("visible"); } } //done } //TypeSearch $("#animalSearch input").on("change keyup", function() { if ($(this).attr('id') == 'searchName') { $("#searchId").val(''); } else { $("#searchName").val(''); } TypeSearch(); }); $("#animalSearch select").on("change", function() { $("#animalSearch input").val(''); $(".pet-item").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); ApplyStatus(); console.log("animalSearch changed"); }); function ApplyStatus() { var PetTypeChoice = $('#petType option:selected').val(); var BreedChoice = $('#breedchoice option:selected').val(); var LocationChoice = $('#physicalLocationId option:selected').val(); var StatusChoice = $('#statusSearch option:selected').val(); var GenderChoice = $('#genderSearch option:selected').val(); var AgeChoice = $('#searchAge option:selected').val(); $(".pet-item").each(function() { //Gender if (GenderChoice === "Female") { $(this).filter(".female").addClass("match-gender"); $(this).not(".female").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (GenderChoice === "Male") { $(this).filter(".male").addClass("match-gender"); $(this).not(".male").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (GenderChoice === "All") { $(this).addClass("match-gender"); } if (GenderChoice !== "All") { $("#search-nav .selection.gender").addClass("selected"); } else { $("#search-nav .selection.gender").removeClass("selected"); } //Location if (LocationChoice === "El Cajon Campus") { $(".pet-item.cajon").addClass("match-location"); $(this).not(".cajon").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (LocationChoice === "Escondido Campus") { $(".pet-item.escondido").addClass("match-location"); $(this).not(".escondido").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (LocationChoice === "San Diego Campus - 5500") { $(".pet-item.san-diego").addClass("match-location"); $(this).not(".san-diego").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (LocationChoice === "Oceanside Campus") { $(".pet-item.oceanside").addClass("match-location"); $(this).not(".oceanside").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (LocationChoice === "ALL") { $(".pet-item").addClass("match-location"); } if (LocationChoice !== "ALL") { $("#search-nav .selection.location").addClass("selected"); } else { $("#search-nav .selection.location").removeClass("selected"); } //Status if (StatusChoice === "Off-Site") { $(this).filter(".off-site").addClass("match-status"); $(this).not(".off-site").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (StatusChoice === "Off-Site") { $(this).filter(".off-site").addClass("match-status"); $(this).not(".off-site").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (StatusChoice === "On-Site") { $(this).filter(".on-site").addClass("match-status"); $(this).not(".on-site").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (StatusChoice === "All") { $(this).addClass("match-status"); } if (StatusChoice !== "All") { $("#search-nav .selection.status").addClass("selected"); } else { $("#search-nav .selection.status").removeClass("selected"); } //Age if (AgeChoice === "0") { $(this).filter(".young").addClass("match-age"); $(this).not(".young").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (AgeChoice === "1") { $(this).filter(".adult").addClass("match-age"); $(this).not(".adult").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (AgeChoice === "2") { $(this).filter(".senior").addClass("match-age"); $(this).not(".senior").removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (AgeChoice === "All") { $(this).addClass("match-age"); } if (AgeChoice !== "All") { $("#search-nav .selection.age").addClass("selected"); } else { $("#search-nav .selection.age").removeClass("selected"); } //PetType if ((PetTypeChoice === "ALL") || (PetTypeChoice === "Cat") || (PetTypeChoice === "Dog")) { $("#breedchoice").attr("disabled", false).removeClass("disabled"); $(".breed.selection").removeClass("disabled"); $("#genderSearch").attr("disabled", false).removeClass("disabled"); $(".gender.selection").removeClass("disabled"); $("#statusSearch").attr("disabled", false).removeClass("disabled"); $(".status.selection").removeClass("disabled"); $("#searchAge").attr("disabled", false).removeClass("disabled"); $(".age.selection").removeClass("disabled"); } else if (PetTypeChoice === "Other") { $("#breedchoice").attr("disabled", true).addClass("disabled"); $(".breed.selection").addClass("disabled"); $('#breedchoice option:contains("All")').prop("selected", true); !$('#breedchoice option:contains("All")').prop("selected", false); $("#genderSearch").attr("disabled", true).addClass("disabled"); $(".gender.selection").addClass("disabled"); $('#genderSearch option:contains("All")').prop("selected", true); !$('#genderSearch option:contains("All")').prop("selected", false); $("#statusSearch").attr("disabled", true).addClass("disabled"); $(".status.selection").addClass("disabled"); $('#statusSearch option:contains("All")').prop("selected", true); !$('#statusSearch option:contains("All")').prop("selected", false); $("#searchAge").attr("disabled", true).addClass("disabled"); $(".age.selection").addClass("disabled"); $('#searchAge option:contains("All")').prop("selected", true); !$('#searchAge option:contains("All")').prop("selected", false); } else { $("#breedchoice").attr("disabled", false).removeClass("disabled"); $(".breed.selection").removeClass("disabled"); $("#genderSearch").attr("disabled", false).removeClass("disabled"); $(".gender.selection").removeClass("disabled"); $("#statusSearch").attr("disabled", false).removeClass("disabled"); $(".status.selection").removeClass("disabled"); $("#searchAge").attr("disabled", true).addClass("disabled"); $(".age.selection").addClass("disabled"); $('#searchAge option:contains("All")').prop("selected", true); !$('#searchAge option:contains("All")').prop("selected", false); } var currentType = $(this).find(".pet-type").text(); if (PetTypeChoice.toLowerCase().indexOf(currentType) >= 0) { $(this).addClass("match-type"); if (PetTypeChoice === "Guinea Pig") { if ($(this).hasClass("pig")) { $(this).removeClass("match-type"); } } $(this).not(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (PetTypeChoice === "ALL") { $(this).addClass("match-type"); } if (PetTypeChoice !== "ALL") { $("#search-nav .selection.species").addClass("selected"); } else { $("#search-nav .selection.species").removeClass("selected"); } //Breed var currentBreed = $(this).find(".prime-breed").text(); if (BreedChoice === currentBreed) { $(this).addClass("match-breed"); $(this).not(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (BreedChoice === "All") { $(this).addClass("match-breed"); } if (BreedChoice !== "ALL") { $("#search-nav .selection.breed").addClass("selected"); } else { $("#search-nav .selection.breed").removeClass("selected"); } if (($(this).hasClass("match-status") && $(this).hasClass("male")) && (GenderChoice === "Female")) { $(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } else if (($(this).hasClass("match-status") && $(this).hasClass("female")) && (GenderChoice === "Male")) { $(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } if ((LocationChoice !== "ALL") && !$(this).hasClass("match-location")) { $(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } if ((StatusChoice !== "ALL") && !$(this).hasClass("match-status")) { $(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } if ((AgeChoice !== "ALL") && !$(this).hasClass("match-age")) { $(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } if ((BreedChoice !== "ALL") && !$(this).hasClass("match-breed")) { $(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } if ((PetTypeChoice !== "ALL") && !$(this).hasClass("match-type")) { $(this).removeClass("match-location match-status match-age match-gender match-type match-breed petname-match petid-match"); } //un-hide if ($(this).is("[class*='match']")) { $(this).removeClass("hidden-pet"); } else { $(this).addClass("hidden-pet"); } }) //each console.log('PetTypeChoice: ' + PetTypeChoice); console.log('BreedChoice: ' + BreedChoice); console.log('LocationChoice: ' + LocationChoice); console.log('GenderChoice: ' + GenderChoice); console.log('StatusChoice: ' + StatusChoice); console.log('AgeChoice: ' + AgeChoice); console.log("Matching Pets: " + $("#animalGallery .pet-item[class*='match']:not('.hidden-pet')").length); console.log("height: " + $("#animalGallery").height() > 24); if ($("#animalGallery").height() > 80) { $("#no-results").removeClass("visible"); } else { $("#no-results").addClass("visible"); } // Storage /* createCookie('PetTypeChoice', PetTypeChoice); createCookie('BreedChoice', BreedChoice); createCookie('LocationChoice', LocationChoice); createCookie('GenderChoice', GenderChoice); createCookie('StatusChoice', StatusChoice); createCookie('AgeChoice', AgeChoice); console.log("PetTypeChoice: " + readCookie('PetTypeChoice') + " BreedChoice: " + readCookie('BreedChoice')); */ if (PetTypeChoice !== "ALL") { $("#breedchoice option").addClass("hidden"); $("#breedchoice option[data-type='All'], #breedchoice option[data-type='" + PetTypeChoice + "']").removeClass("hidden"); console.log("Matching Pet Breeds..."); } else { $("#breedchoice option").removeClass("hidden"); console.log("Matching ALL Pet Breeds..."); } } //ApplyStatus var PetTypeChoice = $('#petType option:selected').val(); var BreedChoice = $('#breedchoice option:selected').attr("data-type"); $("#petType").on("input", function() { if (PetTypeChoice != BreedChoice) { console.log("no match;"); $("#breedchoice option").prop("selected", false).removeProp("selected"); $("#breedchoice option").eq(0).prop("selected", true).attr("selected", "selected").change(); } else if (PetTypeChoice == BreedChoice) { console.log("match; no type change"); } else if (BreedChoice === "All") { console.log("All Breeds"); } console.log("PetType changed; petType selected: " + PetTypeChoice + " chosenBreed: " + BreedChoice); }); $("#breedchoice").on("input", function() { var BreedChoice = $('#breedchoice option:selected').attr("data-type"); if (BreedChoice !== "All") { $("#petType option:selected").prop("selected", false).removeAttr("selected"); $("#petType option:contains('" + BreedChoice + "')").prop("selected", true).change(); } console.log("Breed changed; chosenBreed: " + BreedChoice); }); $(".search-form button[type='reset']").on("click", function() { $('.search-form select option:contains("All")').prop("selected", true); $('.search-form select option:contains("ALL")').prop("selected", true); !$('.search-form select option:contains("All")').prop("selected", false); !$('.search-form select option:contains("ALL")').prop("selected", false); $('.search-form input[type="text"]').val(''); $("#no-results").removeClass("visible"); /* eraseCookie('PetTypeChoice'); eraseCookie('BreedChoice'); eraseCookie('LocationChoice'); eraseCookie('GenderChoice'); eraseCookie('StatusChoice'); eraseCookie('AgeChoice'); */ window.location.href = window.location.href.replace(window.location.search, ''); console.log("reset"); }); $("#animalSearch input").on('click keyup keypress', function(e) { var keyCode = e.keyCode || e.which; if (keyCode === 13) { e.preventDefault(); return false; } }); $("#animalSearch button").on('click keyup keypress', function(e) { $("#animalSearch .selection").removeClass("active"); $(this).parents(".selection").addClass("active"); e.preventDefault(); return false; }); setTimeout(() => { $("#breedchoice").each(function() { $(this).html($(this).children('option').sort(function(a, b) { return ($(a).val()) > ($(b).val()) ? 1 : -1; })); }); $(".search-form select").each(function() { $(this).find("option:first").prop("selected", true); $(this).find("option:not(':first')").prop("selected", false); }); }, "4500") }); //document ready// JavaScript Document

Browse our available pets below!

Adoptions are completed in person on a first-come, first-served basis. Once you have found an animal you’re interested in, please visit the appropriate campus during adoption hoursto speak with an adoption counselor.

Browse Featured Pets

Search Pets Being Rehomed

Search Adoptable Animals | San Diego Humane Society (2)

Your adventure in pet ownership starts here!

San Diego Humane Society has a variety of adoptable pets available including cats, dogs and small animals like rats, rabbits, hamsters, birds, reptiles and more.

Choose a pet type, location, gender and/or age to filter your search results. Alternatively, you may enter a specific animal name or animal identification number. For more about our adoption process, featured pets, discounts and rescue partners, please click here.

No Search Results Found

Adoption Process Featured Pets Rescue Partners Search Pets being Rehomed

Search Adoptable Animals | San Diego Humane Society (4)

Search Adoptable Animals | San Diego Humane Society (5)

In This Section

  • Search Adoptable Animals
  • Featured Pets
  • Pets Being Rehomed
  • Adoption Policy
  • Adoption Process
  • Discounts
  • Rescue Partners
  • Dog Day Out
  • Working Cat Adoption

Stay Informed!

Sign up for newsletter

Search Adoptable Animals | San Diego Humane Society (2024)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Jonah Leffler

Last Updated:

Views: 5992

Rating: 4.4 / 5 (45 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.