So, in a nutshell, I have this custom dropdown (which doesn't use a select element) for my web application. As you can see in the very brief HTML snippet below, the default value/placeholder for the custom dropdown is "Acura".
<span id="builder-make-selection" class="pick">
<div class="custom_dd_select builder_makes" tabindex="1">
<div class="custom_dd_select">
<span>
<a>Acura</a>
</span>
I'm trying to change the default placeholder for the custom dropdown from "Acura" to "Toyota".
All the HTML for the dropdown is being rendered through the JavaScript, so for the changes to be reflected on the HTML, I have to edit the JavaScript.
So, I'm trying to write a function on document ready that will set the default placeholder to "Toyota". Since I'm terrible with jQuery, I'm not able to get this to work. Anybody know what I'm doing wrong?
$(document).ready(function(){
$(#builder-make-selection .custom_dd_select builder_makes a).text("Toyota");
});