How to remove Size attribute from select

QuestionsHow to remove Size attribute from select
Amit asked 4 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 4 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

2 + 4 =

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 / 5. Vote count:

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

Let us improve this post!