The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Select prefix by jQuery
I need help in selecting a default prefix on creating new topic. Selected by default is "No Prefix". In our support forums I want to change it to prefixid "unsolved" by default.
Normally I would select the right option by attribute, but that don't work, because source code is different after js-rollup. Seems all options were change into span tags. I don't really have any idea, how to select and submit the needed value to change dropdown menu (selected=selected). Can someone help me? --------------- Added [DATE]1518688013[/DATE] at [TIME]1518688013[/TIME] --------------- I now have a solution for selecting "Unsolved" prefixid value. But dropdown furthermore displays "No Prefix". How can I set that to "Unsolved" ? Here is my code so far: Code:
if($("div[data-current-channelid*='23']").length == '1') {$('.js-content-entry-prefixes option[value="Unsolved"]').prop('selected', true);} |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|