Using Jquery/prototype + innerHTML replacement.
I currently have a problem where I have used Jquery and Prototype on the same page with noconflict. Everything works fine up until I call Javascript functions on individual pages(in wordpress) to replace a div label.
The conflicting code is:
$('#variation_select_327_10 :not(:has(*))').text(function(i, v) {
return v.replace(/--Please Select--/g, 'Quantity');
});
where the div for replace is #variation_select_327_10
I have tried using jQuery.noConflict(); var $j = jQuery; and then replacing the the $ in the code with $j
Possibly there might be a better solution for relacing the elements then using my code, or maybe theres something im not doing right. any help would be greatly appreciated.