recycler
Buy, sell, repeat
Classifieds
Home
Place An Ad
My Account
Top Picks
Cars
Trucks & SUVs
Dogs
Apartments for Rent
Classified Categories
Cars and Vehicles
Pets
For Rent
For Sale
Real Estate
All Categoies
Site Info
About Us
Contact Us
Privacy Policy
Terms of Service
Full Site
Feedback
My location
Use my location
Refine Search
Done
Ads with Photos
Price
to
Seller Type
All
Dealer | Business
Private Party
Category
Select One
Cars and Vehicles (172323)
Pets (4188)
Jobs (1161)
For Sale (478)
Services (181)
Sports and Recreation (110)
Community (41)
For Rent (39)
Music (25)
Real Estate (9)
Tickets (2)
To see additional filter options, please select a category
Done
Cancel
<script type="text/javascript"> $(document).ready(function () { $("form").submit(function () { //if (getParameterByName("category") == "") { // $("#category").popover({ // placement: 'bottom', // content: 'Please select a category.' // }); // $("#category").popover('show'); // return false; //} }); $("select.form-control").change(function () { var redirect = encodeURIComponent(getParameterByName("previousURL")); var selected = $(this).find("option:selected"); if (selected != null) { var url = selected.attr("data-url"); if (url != null) { //selected.attr("data-url", url); window.location.href = pushParametersToURL(url) + "&previousURL=" + redirect; } } }); $("#distance").change(function () { var distance = $(this).find("option:selected"); var url = updateParameterInURL("distance", $(distance).val(), window.location.href); var redirect = pushParametersToURL(url); window.location.href = redirect; }); $(".small-location").click(function (event) { var url = $(this).attr("href"); var results = url.split('ReturnURL='); if (results.length > 1) { url = pushParametersToURL(decodeURIComponent(results[1])); } window.location.href = results[0] + 'ReturnURL=' + encodeURIComponent(url) event.preventDefault(); }); $("button.btn-refine-remove").click(function () { //var url = $(this).attr("data-url"); //if (url != null) { // window.location.href = url; //} var url = window.location.href; var refinement = $(this).parent().find("input[type=hidden]").attr("name"); url = updateParameterInURL(refinement, "", url); var redirect = pushParametersToURL(url); window.location.href = redirect; }); $('[data-toggle=refine-row]').click(function () { $(this).parent().parent().next().toggleClass("hidden"); $(this).find("span").eq(0).toggleClass("glyphicon-chevron-down"); $(this).find("span").eq(0).toggleClass("glyphicon-chevron-right"); }); }); function getParameterByName(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); } function updateParameterInURL(name, val, url) { var regex = new RegExp("&?" + name + "=([^&#]*)") url = url.replace(regex, ""); if (val == '') return url; return url + '&' + name + '=' + val; } function pushParametersToURL(url) { //txtkeyword if ($("#txtkeyword").val() != '') { url = updateParameterInURL("keyword", $("#txtkeyword").val(), url); } //from price if ($("input[name=from_price]").val() != '') { url = updateParameterInURL("from_price", $("input[name=from_price]").val(), url); } //to price if ($("input[name=to_price]").val() != '') { url = updateParameterInURL("to_price", $("input[name=to_price]").val(), url); } //has photo if ($("input[name=hasphoto]").is(":checked")) { url = updateParameterInURL("hasphoto", "true", url); } //seller type //if ($("input[name=dealer]").is(":checked") && !$("input[name=private]").is(":checked")) { // url = updateParameterInURL("sellertype", "Dealer", url); //} //else if ($("input[name=private]").is(":checked") && !$("input[name=dealer]").is(":checked")) { // url = updateParameterInURL("sellertype", "Private+Party", url); //} //else if ($("input[name=private]").is(":checked") && $("input[name=dealer]").is(":checked")) { // url = updateParameterInURL("alltype", "1", url); //} switch ($("input[name=sellertype]:checked").length) { case 0: //url = updateParameterInURL("alltype", "1", url); break; case 1: url = updateParameterInURL("sellertype", $("input[name=sellertype]:checked").eq(0).val().replace(" ", "+"), url); break; case 2: url = updateParameterInURL("alltype", "1", url); break; } return url; } </script>