2

I work on my angularjs project.

I try to append html-string to some div using JQuery like that:

 var html = '<a class="navbar-brand" ui-sref="sitesDamages.sitesList" style="padding: 11px 09px;" title="events"><i class="glyphicon glyphicon-exclamation-sign"></i></a>'     
 $("#inspectorArea").append(html);

After I append the html-string the icon appears on the appended div but , when I click on the icon it's not work(when I navigate mouse on anchor mouse not converted to the pointer and when I click on the icon in the anchor I don't get any reaction.)

While if I put html element direct on the template it works fine.

Any idea why html-string not working if I append it as string?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.