codeigniter - Pass data through form by onclick -
this should simple can't it.
i want pass particular field value controller function through onclick
by form submit
<form action="<?php echo base_url();>data/pass" method="post"> <select name="name1" id="name1" onclick="" class="m-wrap" > <option selected="selected" disabled="disabled">select</option> <option value="1">by year</option> </select> <form>
please me.
change code this
<form action="<?php echo base_url();?>data/pass" method="post"> <select name="name1" id="name1" onchange="this.form.submit()" class="m-wrap" > <option selected="selected" disabled="disabled">select</option> <option value="1">by year</option> </select> <form>
Comments
Post a Comment