
Add new properties to <Input> tag
Hi Steve,
Giving error:
When i change something in input box and click on Ok button, while trying to
retrive the value as (dot).text (I am getting error again: [Object doesn't
support this property or method: 'txtName.text']
* If I could assing the value like ==> txtName.text = "bla bla bal"
* And retrive the value as ==> msgbox txtName.text
need help to find the soultion.
Regards,
Uma
Sample asp pasted..
*********** test.asp ************
<Script Language="VBScript">
Sub btnOK_click()
msgbox txtName.text
End Sub
</Script>
<HTML>
<Head>
</Head>
<Body>
<input name="txtName" type="text"
onchange="vbscript:txtName.text=txtName.value">
<input type="button" name="btnOK">
</Body
</HTML>
******** End of test.asp ****************
Quote:
> Simply add a text property to the input and update its value when the
> input's value changes:
> <input text="text" onchange="vbscript:me.text=me.value" ...>
> =-=-=
> Steve
> -=-=-
> > How to add new properites to <Input> tag?
> > I am trying to make another property called .text?, because some of old
> code
> > uses third party control, ahd needs (dot).text to store/retrive the
value
> > insted of (dot).value property.
> > Thanks in advance.
> > Uma