wd006451
asked on
Document objects ID to a string value.
Hello, I have a button.
<script type="text/javascript">
function ShowText(objectsID)
{
alert(objectsID + ' is your selected object');
}
</script>
<table id="a1">
<tr><td>A1</td></tr>
</table>
<input id="myNewButton" type="button" value="Click Me" onclick=ShowText(this);>
I am trying to get the function to convert the name of the object myNewButton to a text string to be able to concanate to.
<script type="text/javascript">
function ShowText(objectsID)
{
alert(objectsID + ' is your selected object');
}
</script>
<table id="a1">
<tr><td>A1</td></tr>
</table>
<input id="myNewButton" type="button" value="Click Me" onclick=ShowText(this);>
I am trying to get the function to convert the name of the object myNewButton to a text string to be able to concanate to.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.