Solved

ddselect problems

Posted on 2014-03-26
5
311 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 500 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

749 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