Copy link to clipboard
Copied
Hi,
I have the following script:
function change2(e)
{
var userInput = document.getElementById(e).innerHTML;
userInput++;
document.getElementById(e).innerHTML = userInput;
}
</script>
being called via:
echo "<a href=\"#\"><img src=\"./../Up.JPG\" border=\"0\" onclick=\"change2('".$idkey."');\"></a>";
echo " ".$num_rows1."</form>";
I basically want 'e' to be dynamic accepting the id passed into it.
Thanks in advance.
Copy link to clipboard
Copied
sorry, had a typo. resolved.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now