Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ddselect problems

Posted on 2014-03-26
5
Medium Priority
?
314 Views
Last Modified: 2014-03-28
I copied the ddselect code from github.
http://www.kids4kars.org/madlib2.asp

Is there a way to change the js code that when you select an option from the second box, when it copies the information to a div, it removed the image part and just shows the label?
0
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 39958518
please take time to provide the right information :
The plugin on github (ddslick not ddselect) : https://github.com/prashantchaudhary/ddslick

when it copies the information to a div

Which information? first and second box?
Is second box is depending the first one but not currently?

On the first documentation (http://designwithpc.com/Plugins/ddSlick) example I see :
onSelected: function (data) {
        console.log(data);
    }

Open in new window


If you add the following code to the SECOND ddslick parameter, it should work :
onSelected: function (data) {
        $('#demoBasic img').hide(); // hide image of the first one
    }

Open in new window

0
 

Author Comment

by:rivkamak
ID: 39961861
when I load the page, the boxes first load as regular text and then the page jumps and the code kicks in.
is there a way to make the code load faster, so people don't see the time delaY?
0
 
LVL 82

Expert Comment

by:leakim971
ID: 39961873
You should confirm your FIRST question has been answered... or not... before asking something else...
0
 

Author Comment

by:rivkamak
ID: 39961878
yes, the first question was answered and you will get your points.
now can you help me with the second?
0
 
LVL 82

Expert Comment

by:leakim971
ID: 39961908
So why not closing the quesion and see if I want to answer the second one?

Anyway :
Add this CSS to hide the dropdown :
#demoBasic, #divNoImage {
   display:none;
}

Open in new window


This is how to show the first one AFTER creating it :
$("#demoBasic").show();

Open in new window


This is how to show the second one AFTER creating it :
$("#divNoImage").show();

Open in new window

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Six Sigma Control Plans

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question