开发者

How to pass parameter from Django template?

1) Is it possible to catch value of ChoiceField in a template when clicking on a hyperlink? How and where to store and pass it?

2) Is there event of item changing in ChoiceField?

More s开发者_Python百科imple solutions will be preferable.

EDIT: simple button with POST is not what I want.


I think you'd better look at javascript for this. With jQuery, you should be able to read out the value of a select box, and append it to your hyperlink.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜