tags:

views:

66

answers:

2

I inject html to div on the page (contains float div)

var text = "some text<div style='float:rigth'><a href='#'>foo</a></div>"
$("#taget").html(text);

After that users of Google Chrome and Safari cannot click at link "foo"

+2  A: 

Use either

$("#taget").html(text);

Or use

document.getElementById("taget").innerHTML = text;
Alec Smart
sorry guys. I've already use$("#taget").html(text);The question is about link in float div. Not about injection of html.
Meta
What do you want the link to do? What exactly is the problem?
Alec Smart
I mean that link style is OK but I cannot click on it (even cursor is "arrow" on such link)
Meta
+1  A: 

http://jsbin.com/axaje

works fine for me.

meder
not sure what are you trying to show?
Meta
finaly I found a blue link on black background :)It's really works in Chrome. Looks like I need to investigate my case more carefully. For now - thank you!
Meta