Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and calling this function with onclick event like as below#java script function function displayExams() { var student = document.getElementById("STUDENT_NAME").value; var exams=document.getElementById("EXAMS_APPEARED").value;
After opening the application webpage, when i select the student name from drop down, the second drop down on click should only display the exams which he has appeared, but it displaying exams_ appeared for all the student. Could you please rectify my mistake and help me to fix this issue.select style='$style_input' name='EXAMS_APPEARED' id='EXAMS_APPEARED' +onClick=\"displayExams();\" > <option value=''>--Select--</option> "; my $ExamsCount=@ExamsAppeared; for (my $j=0;$j<$ExamsCount;$j++) { $DisplayString=$DisplayString."<option value='$ExamsAppeared[$j]'>$Exa +msAppeared[$j]</option>\n"; } @ExamsAppeared = getdbresult(); sub getdbresult { # for getting the db data stmts... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to populate the aasociated values as options in a dropdown
by GrandFather (Saint) on Mar 24, 2015 at 03:59 UTC | |
|
Re: Unable to populate the aasociated values as options in a dropdown
by roboticus (Chancellor) on Mar 24, 2015 at 03:49 UTC | |
|
Re: Unable to populate the aasociated values as options in a dropdown
by ww (Archbishop) on Mar 24, 2015 at 04:00 UTC |