How to remove Size attribute from select

QuestionsHow to remove Size attribute from select
Amit asked 9 years ago

i would like to know how we can remove the default size attribute provided in $col['editoptions']. I don't want size attribute over there.

1 Answers
Abu Ghufran answered 9 years ago

In dropdown, size = 1 is added inside JS core lib and can't be removed.
You can override width or other attributes values (height,width) using css inline style.

e.g.
$col['editoptions']["style"] = "width:200px";
$col['editoptions']["size"] = "4";
$col['editoptions']["multiple"] = true;

Your Answer

6 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?