Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > How to add onchange event to dropdown using xslt

Reply
Thread Tools

How to add onchange event to dropdown using xslt

 
 
rekha rekha is offline
Junior Member
Join Date: Nov 2008
Posts: 4
 
      11-25-2008
Hi All,
I want to add onchange event to my dro down using xslt. i have written following code but its not working..


<xsl:element name="Select">
<xsl:attribute name="name">opt</xsl:attribute>
<xsl:attribute name="onChnge">javascript:alert("xyz");</xsl:attribute>
<xsl:for-each select="catalog/cd">
<option><xsl:value-of select="title"/></option>
</xsl:for-each>
</xsl:element>


its urgent please reply soon..

Thanks
rekha
 

Last edited by rekha; 11-26-2008 at 11:38 AM..
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Checkboxlist add onchange event Jason Hartsoe ASP .Net 1 08-01-2008 03:58 PM
How do I add to an onchange event? nimhyea@gmail.com Javascript 14 01-19-2008 06:12 PM
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event. Daniel Roth ASP .Net Datagrid Control 0 04-05-2005 03:58 AM
onchange of a dropdown DaveF ASP .Net 3 12-30-2004 11:39 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57