kandi X-RAY | descript3 Summary
kandi X-RAY | descript3 Summary
descript3
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of descript3
descript3 Key Features
descript3 Examples and Code Snippets
Community Discussions
Trending Discussions on descript3
QUESTION
i have 6 products in left side div...when i click on product-1 only product-descript-1(details of product-1) will be shown in right side div and remaining details of products are hidden.... if i click on product-2 then only product-descript-2 (details of second product) is shown in the right side and product-3 and prodcut4 and product-5 and product-6 are aslo same way
...ANSWER
Answered 2018-Sep-26 at 12:07You need to use class selector so you can target all the products, for example you can use add class="product"
to each product div (at the same level as product-ID ) then once the user clicks on any item with that class hide all the items with that class and show only the currently clicked one.
Here is a simple complete working solution:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install descript3
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page