Revision history [back]

click to hide/show revision 1
initial version

asked 2014-02-19 19:25:15 +0800

sapot gravatar image sapot

setValue on onclick?

<textbox id="clearbox" value="XYZ"/> <button id="clearbutton" onclick="clearbox.setValue('ssss')">Clear Text</button>

When I click the button I want to change the value of my textbox but my code doesn't work because of parsing errors.

How to do this?

setValue on onclick?

<textbox id="clearbox" value="XYZ"/>
value="XYZ" />
<button id="clearbutton" onclick="clearbox.setValue('ssss')">Clear Text</button>

id = "clearbutton" onClick="clearbox.setValue('ssss')">Clear Text</button>

When I click the button I want to change the value of my textbox but my code doesn't work because of parsing errors.

How to do this?

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More