go-admin
go-admin copied to clipboard
[Question]怎么取当前表单项的值???
Description [describe your questions]
问题是这样的,我的表单的第二个下拉框依赖第一个的值,所以我应该怎么取第一个表单项的值去ajax请求拿第二个表单的数据???
Example code [If you have any code info]
formList.AddField("影视资源", "movie_id", db.Int, form.SelectSingle).
FieldOptions(movieOptions).
FieldOnChooseAjax("movie_investment_id", `/test/aaaa?movie_id=1`, handler)
formList.AddField("招商项目", "movie_investment_id", db.Int, form.SelectSingle)