jQuery-根据点击或选择更改URL [英] Jquery - Change URL depending on click or selection
问题描述
这是我上一篇文章的后续问题:链接 >
我想根据所选语言更改URL的字符串.
所以如果我有href="../folder/Languages/English/test/test.html
单击或选择另一种语言会将href更改为:href="../folder/Languages/SomeOtherLanguage/test/test.html
现在,我想根据语言添加标记图标.由于无法找到使用CSS创建此代码的方法,因此偶然发现了jQuery插件 ddSlick .我喜欢插件的整体样式,但是现在我无法使其与文本链接解决方案一起使用. 我已经设置了jsfiddle,因此您可以看一下: JSFiddle
也许这比我想象的要容易,但是我的jQuery对此还不够好.
希望您可以在这里帮助我.
谢谢.
我显然不想得到你想要的东西,但是我已经改变了小提琴中的一些东西.我希望那是你想要的.将新的 FIDDLE 退出
This is a follow-up question to my previous post: Link
I want to change the string of a url depending on the selected language.
So if I have href="../folder/Languages/English/test/test.html
clicking or selecting another language would change the href to: href="../folder/Languages/SomeOtherLanguage/test/test.html
Now I want to add a flag-icon according to the language. Since I couldn't find a way to create this with css I stumbled over the jQuery-plugin ddSlick. I like the overall style of the plugin but now I can't get it to work with the text link solution. I have set up a jsfiddle so you can have a look: JSFiddle
Maybe this is easier than I think it is but my jQuery is not good enough for this.
Hope you can help me out here.
thank you.
I don't clearly got want you want but I have changed something in the fiddle. I hope that's thing you want. Check the new FIDDLE out
这篇关于jQuery-根据点击或选择更改URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!