< script >
tag, you can attach code to an event for a particular object.event.srcElement.className
, it works.< style > .dateCls {} < /style > < script for="bodyTag" event="onkeypress" language="javascript"> if(event.srcElement.className=="dateCls") dateKeyPress(event.srcElement); < /script>>I know that using javascript, you can do the following to attach an event to a particular method:
frm.myButton.onclick = myOnClick();>
frm.dStart.onkeypress = dateKeyPress(); >frm.dEnd.onkeypress = dateKeyPress();>something like a style definition
< style > dateCls {onkeypress:dateKeyPress()} >< /style > >... >< input class="dateCls">...>TIA.