I have created a custom menu function in functions.php, but I need to execute it in a container that is created by a javascript. Is this doable? The js is outputting a container called "album-info-text" that i'd like to replace the content of with my menu. This is the code that (I think) is outputting this container.
out += '<div class="slider-album-indicator">';
out += '<div class="album-info-text">'+
'<a href="javascript:void(0);" title="Info" class="album-name-indicator underlined"></a>'+
'<span class="item-count-indicator"></span>'+
'</div>';
out += '</div>';
out += '</div>';
I tried to change it to: out += ''; out += '' out += ''; out += '';
but that didn't work. jp_gMenu() is my custom menu function btw. As you can probably tell I don't really know what I'm doing with Javascript. I doubt what I'm trying to do is even legal, but if I put the function in the page template and then use css to move its container into position the links don't work.
.replaceWith()
and report back. – JPollock Mar 29 at 22:40