Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 15 Feb 2018, 08:47
BulliM's Avatar
BulliM BulliM is online now
 
Join Date: Oct 2017
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 15 Feb 2018 at 09:46 ---------------

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #2  
Old 15 Feb 2018, 12:19
delicjous's Avatar
delicjous delicjous is offline
 
Join Date: Nov 2014
Perhaps something like this:

$('.js-content-entry-prefixes .selectBox-label').text('Unsolved');

Did not test it!
__________________
ⓒ by delicjous
Reply With Quote
  #3  
Old 15 Feb 2018, 12:33
BulliM's Avatar
BulliM BulliM is online now
 
Join Date: Oct 2017
Originally Posted by delicjous View Post
Perhaps something like this:

$('.js-content-entry-prefixes .selectBox-label').text('Unsolved');

Did not test it!
This works:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Danke dir delicious!

Final Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by BulliM; 15 Feb 2018 at 13:34.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add-On Releases Piclect images upload [no frame] + jquery + drag & drop + multiple select + Bulk link Kemal Gürler vBulletin 3.8 Add-ons 18 20 Jun 2014 08:02



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:50.

Layout Options | Width: Wide Color: