vktechnology
New Member
Hello everybodyI am having a problem with adding elements to \[code\]<li>\[/code\] from jquery,this is my jquery code \[code\]$(".div1").on('click','li',function(){ var phonenumber = $(this).text(); $("#phones ul").append("<li>"+phonenumber+"</li>"); });\[/code\]but when click on the \[code\]div1\[/code\] nothing happend, what am i doing wrong please?notewhen i alter \[code\]phonenumber\[/code\] i got the information that i need.edit\[code\] <div class="div1"><li>press here to show your phone number</li> <div id="phones"><ul></ul></div></div>\[/code\]