hello all,
i'm brand spankin new to jquery... i'll eventually catch on, but in the meantime:
i'm sure there's a good way to append a hyperlink, but i'm in the copy/paste/play-with-til-it-works mode and started with something like:
$("#data").append("<div>" + $(this).attr("Title") + "</div>"
and sucessfully converted that to append a hyperlink with onclick event:
$("#data").append("<a onclick='asdf()' href='#'>" + $(this).attr("Title") + "</a>"
but i can't add a parameter to the asdf() function in the onclick event, this fails:
$("#data").append("<a onclick='asdf(" + $(this).attr("Title") + ")' href='#'>" + $(this).attr("Title") + "</a>"
Error expected ':'
aside from fixing this statement syntactically (which really would do for now) - what would be the best way to append a hyperlink with a click handler?
thanks in advance :)