Joomla! 1.5.7
I am a bit lost with MooTools since I have worked mainly with jQuery. If I load jQuery (with JDOC) I get this error:
js error:el.set is not a function on mootools.js line 23 - and Accordion Menu (mootools) does not work anymore.
I feel that I will have to ditch jQuery for MooTools but that is sad. I want to work with Joomla but I am only confident with jQuery. Anyway - is there a way to do this in MooTools?
- Get the "rel" value of the link and send it to an external page. Fill the result in div "detail". This is jQuery working:
Code: Select all
$(document).ready(function() {
$(".detail").click(function(){
var did = $(this).attr("rel");
$.post("/code/getDetails.php", {id:did}, function(data){
$("#detail").html(data);
});
});
});
<div id="detail"</div>
<a href="#" rel="123">Product link</a>
<a href="#" rel="678">Product link</a>
<a href="#" rel="256">Product link</a>
Glad for any ideas!
/asle