E
Emre Avsar
hi guys..
i have this code:
var myhtml = "<tr>" +
"<th style='color:#006296'>" +
standortname +
"</th>" +
"<th>" +
"Standort von: " +
"</th>" +
"<th>" +
"Anzeigen: <input type='checkbox' class='checkbox' name='show'
value='show' onClick='" + createMarker + "'/>" +
"</tr>"
in the checkbox, i want a onClick event:
alert('hello');
i've tried id with doing a variable:
var createMarker = "alert(\'hello\')";
but it doesnt work.
any help?
i have this code:
var myhtml = "<tr>" +
"<th style='color:#006296'>" +
standortname +
"</th>" +
"<th>" +
"Standort von: " +
"</th>" +
"<th>" +
"Anzeigen: <input type='checkbox' class='checkbox' name='show'
value='show' onClick='" + createMarker + "'/>" +
"</tr>"
in the checkbox, i want a onClick event:
alert('hello');
i've tried id with doing a variable:
var createMarker = "alert(\'hello\')";
but it doesnt work.
any help?