appMobi/jQ.Mobi — Issue #43: Multiple appends...
Author: pepe-el-toro
Created: 2012-01-27 05:38:13+00:00
State: open

Hello there, I am getting an issue here:

Lets says I build a dinamic "LI" item:

====================================

var liLink = $('
');

..........

liLink[0].onclick = function(){
showInfo ( "home", info); //info is an object
};

$("#linkHorizontal ul").append(liLink ); // this works

$("#linkVertical ul").append(liLink ); // the second "append" wont work

==========================================================

Should I create "liLinkVertical" and "liLinkHorizontal"? I just wanted to reuse the same "LI" ....