Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
8997 Lượt xem

Hello Community;

Need Your help to know how to set an option as default value in a select in a qweb template.

I have tried this but it did not work:

option t-att-value="1" t-att-selected="1"

option t-att-value="2" 

option t-att-value="3"

But it is not working.

Need your help please.

Thanks a lot in advance.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Rihenne,

Please try this one..

<option value="your_value" selected="true">Your String</options>

Hope this will help......

Regards

Ảnh đại diện
Huỷ bỏ
Tác giả

It is not working !!!!!

Sorry for the trouble, Answer updated

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 9 23
21264
1
thg 3 21
5063
2
thg 10 20
13143
0
thg 5 17
2583
0
thg 5 22
2367