changing the onclick property trough javascript
Hi everyone,
I need to change
onclick="javascript:getNextPhoto('x','y');
to
onclick="javascript:getNextPhoto('z','w');
var next="'" + polje[0] + "','" + polje[3] + "'";
$("#next").attr('onclick', next);
doesnt work
niether does
document.getElementById( "#next" ).onclick = new Function("getNextPhoto(" + next + ");");
please help, thx!
|