Welcome Guest, Not a member yet? Register   Sign In
Retrieving problem..!!!
#6

[eluser]Roy MJ[/eluser]
Ive figured put a way to show the list in select box, but im not sure whether this is the proper way. Displaying the selected thing as default is also not working with this.. Here is the view part..

Code:
<div>
    <label>Product Group<span class="mandatory">*</span></label>
     <select name="product_group" id="product_group" class="list_1">
        <option value="">- - Select Category - -</option>
        &lt;?php foreach($this->data['productcategory'] as $row){ ?&gt;
        <option value="&lt;?php echo $row->category_name ?&gt;" &lt;?php echo set_select('product_group',$row->category_name);?&gt; >&lt;?php echo $row->category_name ?&gt;</option>
        &lt;?php    }    ?&gt;
    </select>
<span style="color:#FFFFFF; font-size:10px">&lt;?php echo form_error('product_group'); ?&gt;</span>
</div>


Messages In This Thread
Retrieving problem..!!! - by El Forum - 03-30-2011, 12:41 AM
Retrieving problem..!!! - by El Forum - 03-30-2011, 07:45 AM
Retrieving problem..!!! - by El Forum - 03-30-2011, 09:42 PM
Retrieving problem..!!! - by El Forum - 03-30-2011, 09:43 PM
Retrieving problem..!!! - by El Forum - 03-30-2011, 09:44 PM
Retrieving problem..!!! - by El Forum - 03-30-2011, 09:48 PM
Retrieving problem..!!! - by El Forum - 03-31-2011, 07:34 AM
Retrieving problem..!!! - by El Forum - 03-31-2011, 07:37 AM
Retrieving problem..!!! - by El Forum - 03-31-2011, 09:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB