Skip to content

Tag: javascript

Issue with filtering on dynamically added elements

I have the following code to filter a UL list based on click on another UL. I will append dynamically some more elements to the bs-glyphicons-list-sub list to be filtered and I need to modify my code for this. The line I need to modify is the following: where I need to include the elements that I appended aft…

Include JSON files into React build

I know this question maybe exist in stack overflow but I didn’t get any good answers, and I hope in 2020 there is better solution. In my react app I have a config JSON file, it contains information like the title, languages to the website etc.. and this file is located in ‘src’ directory I w…

show/hide section in wordpress with select values

I use Divi Theme in WordPress. I have sections that I gave IDs. I have a select, and for each option value I use the sections IDs. I want show one section by changing the select option and hide the other section that is showed. Here is the select : Here is the javascript : Could you tell my why