Welcome Guest, Not a member yet? Register   Sign In
Javascript onChange not working in xhtml
#2

[eluser]Jason Tan Boon Teck[/eluser]
The output as xhtml is as follows:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;
    &lt;link href="12082007010920071193889920_files/thirra_style.css" rel="stylesheet" type="text/css"/&gt;
    &lt;title&gt;Diagnosis&lt;/title&gt;
&lt;/head&gt;
&lt;body class="html"&gt;[removed][removed]('JS in body');[removed]
<br/>diagnosisChapter <br/>diagnosisCategory<br/>diagnosis<br/>diagnosis2<br/>&lt;form action="http://192.168.0.18/thirra/index.php/emr/edit_diagnosis/12082007010920071193889920" method="post"&gt;
<table width="100%" align="center" class="frame"><tr>
<td width="25%"><b>Diagnosis Chapter <font color="red">*</font></b></td><td colspan="2" class="red">
<select name="diagnosisChapter" class="normal">
<option label="" value="0">Choice 0</option>
<option label="" value="K00-K93 Diseases of the digestive system">Choice 1</option>
<option label="" value="C00-D48 Neoplasms">Choice 2</option></select></td></tr>
<tr>
<td width="25%"><b>Diagnosis Category (ICD-10)<font color="red">*</font></b></td>
<td colspan="2" class="red">
<select name="diagnosisCategory" class="normal">
<option value="">Please select one</option></select></td></tr>              
   </table>
   <br/>
   <center>
           &lt;input type="submit" class="button" name="submit" value="Enter Diagnosis"/&gt;
   </center>
   &lt;/form&gt;
<br/>

    [removed]
&lt;![CDATA[
    alert('Javascript is turned on!')
    [removed]('JS in body');
        function selectDiagnosisCategory(){
            document.form.status.value="Unfinished";
            document.form.diagnosisCategory.selectedIndex = -1;
            document.form.diagnosis.selectedIndex = -1;
            document.form.diagnosis2.selectedIndex = -1;
            document.form.submit.click();
        }

        function selectDiagnosis(){
            document.form.status.value="Unfinished";
            document.form.diagnosis.selectedIndex = -1;
            document.form.diagnosis2.selectedIndex = -1;
            document.form.submit.click();
        }

         function selectDiagnosis2()
         {
            document.form.status.value="Unfinished";
            document.form.diagnosis2.selectedIndex = -1;
            document.form.submit.click();
         }
]]>
      [removed]

&lt;/body&gt;&lt;/html>


Messages In This Thread
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 01:43 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 01:44 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 03:54 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 04:02 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 04:09 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 05:09 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 05:24 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 06:01 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 06:08 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 08:56 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 08:59 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 09:37 AM
Javascript onChange not working in xhtml - by El Forum - 11-03-2009, 09:43 AM
Javascript onChange not working in xhtml - by El Forum - 11-05-2009, 12:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB