Scripting a Button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone give me advice on how to create a button that when clicked will
populate a data field on a form?
 
<input type="button" id="whatever" value="Click this"
onClick="document.form1.textfield.value='something else'">

Note - the 'form1' should be replaced with the name of your form, and the
'textfield' should be replaced with the name of your field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top