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 onclick hyperlink.
};
$("#q").keyup(SearchFunction);
});
$(this).text()should do it.