lets say i use jquery.get to retrive a website to string and how am i gonna select the whole table with clas开发者_运维问答s=product from it? $() seem cant work on string ....
You can use .load()
for this, like this:
$("#elementToLoadIn").load("myPage.htm .product");
The format is "url selector"
(note the space there).
The $.get
alternative is:
$.get("myPage.htm", function(data) {
$("#elementToLoadIn").html($(".product", data));
});
精彩评论