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

Hi,

Im start to do some changes on website. I add some new fields without any problem. What I need, is this:

For example:

I have a list of suppliers, when you select one, the product you can choose change. It's an onchange but in website. Cant found any example, so if you could provide one I really appreciate it.

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

Use onchange attribute of Input

<select id="supplier" onchange="myFunction()">
         ................
</select>





Ảnh đại diện
Huỷ bỏ

where should i place the function? is it in the controllers or main?