Can someone tell me how i can sent a string from an onclick event to the searchfunction? onclick="SearchFunction("mystring"); -->This doesnt works.
$(document).ready(function() {
var SearchFunction = function(e) {
searchwords=$("#q").val();
STR=??? -->Needs to get the string from the o开发者_StackOverflow社区nclick hyperlink.
};
$("#q").keyup(SearchFunction);
});
$(this).text()
should do it.
精彩评论