Created
March 22, 2012 18:05
-
-
Save cloudxero/2161222 to your computer and use it in GitHub Desktop.
DealerTrend API - Change phone number on vehicle detail page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (jQuery('#dealertrend-inventory-api #armadillo-detail').length){ | |
var new_phone_number = '(###) ###-####' | |
jQuery('.armadillo-contact-information p').each(function(){ | |
if (jQuery(this).text().match(/phone/i) != null){ | |
jQuery(this).children('strong').text(new_phone_number); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment