0

Hi is there any way to upadte cell value with no events (i dont want to use 'onClick' or others)?

The scheme is: user is filling form value, then clicks 'ok', and then value should be showed in cell in html table ?

thx in advance for all help

3
  • Without events ... How will your code know when the 'ok' button is clicked? Commented Sep 10, 2010 at 8:04
  • i mean no events in table like: <table id="xxx" onClick="myFunc()"> Commented Sep 10, 2010 at 8:07
  • Please try to be more clear. Do you want no events at all? Or just not on the table? In that last case you can just use a button in the <form> where you have the input field and add the onclick event to that button.. Commented Sep 10, 2010 at 8:14

3 Answers 3

1

Well, you can use a link with href="javascript:myFunction()" instead of an onclick, but I'm not sure if that counts as an event :)

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

Comments

0

No, you need to hook up on an even to trigger it.

Comments

0

Since the user is going to click the Ok link anyways that seems to be the most relevant place to invoke your javascript from.

  1. Create a div with an id around the content you would like to change.
  2. Create a javascript function that sets the innerHTML of the above div.
  3. Call the javascript function when the user hits the Ok link.

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.