BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
XHTML
The XHTML <onblur> Event
The XHTML <ul> Tag
The XHTML <u> Tag
The XHTML <tr> Tag
The XHTML <title> Tag
The XHTML <thead> Tag
The XHTML <th> Tag
The XHTML <tfoot> Tag
The XHTML <textarea> Tag
The XHTML <td> Tag
The XHTML <tbody> Tag
The XHTML <table> Tag
The XHTML <s> and <strike> Tags
The XHTML <sub> and <sup> Tags
The XHTML <style> Tag
The XHTML <span> Tag
The XHTML <select> Tag
The XHTML <script> Tag
The XHTML <q> Tag
The XHTML <pre> Tag
<< XALAN
XML DOM >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :430

 

The OnChange Event (XHTML Reference)

Introduction

The OnChange event can be used if you want to know when a value in a control changes. This can be a textfield, a drop down list, a textarea field or anything else. The following example demonstrates this event with a drop down list. Whenever the user selects another value from the list then it will display a message box with the selected value.

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<script type="text/javascript">

function GetValueFromDropDown(value)

{

      alert(value);

}

</script>

<title>OnChange Demonstration</title>

</head>

<body>

<select onchange="javascript:GetValueFromDropDown(this.options(this.options.selectedIndex).value)">

<option value="XML">XML</option>

<option value="XPath">XPath</option>

<option value="XSL">XSL</option>

</body>

</html>

Output


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

An immediate job opportunity as a B
Software Developers Needed in Charl
Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C

View all Jobs (Add yours)
View all CV (Add yours)



answering service
spoc
swimming pool contractor
teleconferencing service
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP