Hi all,
I have a strange problem,
I want to use jquery to get some specific link in a page,
but I found a strange problem, I don't know what happen.
I put maybe 10 anchor tag in my test page, I just put a simple script like
below
alert($("[href]").size());
I can get the response of 10,
but I put the same code in my target page GM script,
I can't get any thing, it always response 0,
then I try
alert($("div").size())
it also response 0,
I checked the target page by view source,
I'm sure that a lot of div or anchor generate by plain html text, not by
script.
I also can use $("body").append("<input type=button>") to create a new
button.
seems only use css selector to get tag failed, why?
I use jquery 1.7.1
sorry for my poor english,
hope someone can help me.
thanks.
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/greasemonkey-users/-/y3bz0mUesVAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.