/    Sign up×
Community /Pin to ProfileBookmark

Need help modifying this jquery selectbox

[url]http://www.mypocket-technologies.com/jquery/SelectBoxPlugin/[/url]

I have spent the whole day trying to get this custom selectbox to automatically slide up after an option is selected.

So far I only accomplished preventing the selected option from showing after contracting the box, but I cannot for the life of me get the box to automatically contract after an option is selected.

I have tried adding these two lines:

[CODE]jQuery(this).removeClass(classselectboxopen).addClass(classselectbox);
jQuery(this).parent().find(selectboxoptions_wrap).slideUp(“fast”);[/CODE]

after:

[CODE]if(boxtype.indexOf(“selectboxoptions_radio”) >-1)
{
if(!jQuery(this).hasClass(classselected))
{[/CODE]

however this has no effect.

Can anyone look into the code and help me out?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @yahooman123 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...