Hi. I have a simple problem, and I know I have solved this before, but I am on a tight deadline, so I am hoping someone in here can help me out.
I hav a page, and a requirement to give the customer instant feedback on the option they have selected. So for example I might have
This works for me at present after a fashion. I would prefer though, for the js to write to a literal or label control, not a textbox. And in addition to that, whenver the above code is run, the answer appears in the text box, and then the page redirects to a blank page displaying just the answer.
so, Most importantly, how do I stop it redirecting to a new page, and secondly, what do I change to make it write to a label, not a textbox
Cheers
K
I hav a page, and a requirement to give the customer instant feedback on the option they have selected. So for example I might have
Code:
<a href="javascript:form.answerTb.Text='Yes'">Yes</a>
<a href="javascript:form.answerTb.Text='No'">Yes</a>
This works for me at present after a fashion. I would prefer though, for the js to write to a literal or label control, not a textbox. And in addition to that, whenver the above code is run, the answer appears in the text box, and then the page redirects to a blank page displaying just the answer.
so, Most importantly, how do I stop it redirecting to a new page, and secondly, what do I change to make it write to a label, not a textbox
Cheers
K