How can I use a variable in getElementById
html:
<td><a href="#" onclick='selectEditActivity("id3319201010153333");'>Click</a></td>
javascript:
function selectEditActivity(pass_id){
// this works
alert(pass_id)
// this works;
var A = document.getElementById("id33192010101533333").getAttribute("seq");
alert(A);
// but this does not when I use the variable
var B = document.getElementById(pass_id).getAttribute("seq");
alert(B);