0
這在Firefox,但在IE並不做任何事情:jQuery的動態地改變的onclick location.href
$("#_results").autocomplete({
source: data,
minLength: 0,
select: function(event, ui) {
$("#log").empty();
log(ui.item.lname + ", " + ui.item.fname + " " + ui.item.sso);
log("Currently in " + ui.item.currentRotation + " rotation");
log("Graduated from: " + ui.item.college);
log("More details can be viewed by clicking here");
$("#log").attr("onclick", "location.href=\'" + ui.item.dataformEntry + "\'\;");
}
具體$("#log").attr("onclick", "location.href=\'" + ui.item.dataformEntry + "\'\;");
是否有另一種方式做到這一點?
感謝