Hello,
I would like to launch 2 functions onlick, so I have tried 3 different ways, but it didint worked:
1. <div id="1" class="buttonas" onmouseover="button_on(1)" onmouseout="button_off(1)" onclick="text(1);textleft(1)">Apie įmonę</div>
At this case works only the first function text(1).
2.Tried using 1 function for calling those 2 and wrote that into the div:
function funkcija (num){
var i=num;
text(i);
textleft(i);
}
At this case works only the first function text(1)
3. Using jquery, tried to call functions in div id:
$('#1').click(function() {
text(1);
textleft(1);
});
$('#2').click(function() {
text(2);
textleft(2);
});
At this case none of the functions work.
Could you help me to solve this problem ?


