Jump to content


How to modify select option value

selectbox option value

  • Please log in to reply
No replies to this topic

#1 pbcomput

pbcomput

    Member

  • Members
  • PipPip
  • 19 posts

Posted 18 December 2013 - 01:36 PM

Hello,

 

I am new to Grocery Crud. I am working on user module. I want to modify the select box of user type on User Add/ Edit form.  User have 2 types, and I took ENUM data type to manage user's type. 

 

Currently I am getting like this

 

<select id="field-member_type" name="member_type" class="chosen-select chzn-done" data-placeholder="Selectionner Member type">

<option value=""></option>

<option value="u">u</option>

<option value="a">a</option>

</select>

 

I need output this select box like below

 

 

<select id="field-member_type" name="member_type" class="chosen-select chzn-done" data-placeholder="Selectionner Member type">

<option value=""></option>

<option value="u">User</option>

<option value="a">Admin</option>

</select>

 

I know the callback method but I want to know if there is any other method to achieve this.

 

Thanks,

Palak

 







Also tagged with one or more of these keywords: selectbox, option, value

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users