Welcome Guest, Not a member yet? Register   Sign In
How To Get Departments Based on Course
#6

[eluser]prakash[/eluser]
Code:
echo form_dropdown('courses', $courses, 'course' , 'onChange="document.myform.submit();"');

My code is like that, its saying

document.myform.submit is not a function--- please help me out


also how to prefill selection box?

my code

Code:
<tr class="fieldbox">
  <td width="311" align="right" height="23">&lt;?php
        $attributes = array('id' => 'myform', 'name' => 'myform' , 'method' => 'post');
  echo form_open('rsis/scholarsubmit' , $attributes);
  $options = array(
      'Select'  => 'Select',
                  'Mr'  => 'Mr',
                  'Mrs'    => 'Mrs',
                  'Ms'   => 'Ms',
                  );
      echo form_label('Salutation','sal'); ?&gt;        </td>
        <td width="33"> <strong>:</strong>        </td>          
    <td width="431" colspan="2">&lt;?php
    $res = str_replace("'","",$departments[0]->salutation);
    echo form_dropdown('salutations', $options, 'sal', set_value($res));?&gt;        </td>
  </tr>


Messages In This Thread
How To Get Departments Based on Course - by El Forum - 02-17-2012, 01:17 AM
How To Get Departments Based on Course - by El Forum - 02-17-2012, 01:39 AM
How To Get Departments Based on Course - by El Forum - 02-17-2012, 01:59 AM
How To Get Departments Based on Course - by El Forum - 02-17-2012, 04:58 AM
How To Get Departments Based on Course - by El Forum - 02-17-2012, 06:03 AM
How To Get Departments Based on Course - by El Forum - 02-19-2012, 10:08 PM
How To Get Departments Based on Course - by El Forum - 02-20-2012, 12:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB