0

Beginner programmer here, I am trying to create an application that involves sending the output of a function to a table cell. Not really sure where to start with this, I've made a button that calls the function when clicked but that's it.

I'm sure there are many steps here and I am not expecting a full step by step tutorial but as I said I am a beginner designing my first app so if anyone could just point me in the right direction as to what to research, it would be greatly appreciated!

1 Answer 1

1
<table>
<tr>
<td id ="name"></td>
</tr>
</table>

You can store the value from the function in a variable and insert it into the cell using the following JS line:

value = function();
document.getElementById("name").innerHTML = value;

Hope this helps you!!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.