很抱歉,这个问题是多余的,但我一直在浏览以前的问题,但找不到我具体寻找的内容。我是 jQuery 新手,所以我很难适应类似的解决方案。
我基本上有两个按钮集,一个用于语言,另一个用于字母表字母,我想动态构造传出链接的 href,以便它反映用户选择的语言字母组合。
示例:如果用户单击“English”和“A”,则传出链接将为“... href = 'Glossary-English-A.html”。
预先感谢您的帮助
and sorry should the question be redundant, but I've been looking through previous questions but couldn't find what I'm looking for specifically. I'm new to jQuery so I adapting similar solutions is hard.
I basically have two button sets, one for languages, and the other for letters of the alphabet, and I would like to construct the href of the outgoing link dynamically so that it is reflecting the language-letter combination the user has selected.
Example: if the user clicks on 'English' and 'A', then the outgoing link would be '... href = 'Glossary-English-A.html'.
Thanks in advance for your help
发布评论
评论(1)
给出以下标记:
以及脚本...
正是我在晚餐前几分钟想到的
:)
示例 jsfiddle。
given the following markup:
And the script...
Just what i cam up in the few minutes before dinner
:)
Example on jsfiddle.