How can i make a dropdown categories list? [closed]










-1















For my website i want to make a dropdown selection.
Like in this website https://www.kingjamesbibleonline.org/ so i need the books>chapters>verse.



I am totally stuck. can somebody help me with the code please. This is a fragment of the JSON file.



improve this question















closed as off-topic by guradio, Quentin, Shree, tripleee, jww Nov 12 '18 at 8:08


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – guradio, Shree, tripleee, jww
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 2





    This will helps you codebyamir.com/blog/populate-a-select-dropdown-list-with-json and stackoverflow.com/questions/18484762/…

    – Hamza Haider
    Nov 12 '18 at 7:29







  • 2





    Welcome to StackOverflow! In order for us to better help you, would you please update your question to contain all relevant code in a minimal, complete & verifiable example. Additionally, providing screenshots of the problem and details of what you’ve tried, make it much more likely that you’ll get a useful answer. For further information, please refer to the help article regarding how to ask good questions.

    – Bryce Howitson
    Nov 12 '18 at 7:33











  • Please validate the JSON snipped. Remove the trail comma from the end and add: ]} @HamzaHaider has some good examples!

    – Peter Bode
    Nov 12 '18 at 7:34












  • Can you send a proper JSON format? I can help you

    – Anand Deep Singh
    Nov 12 '18 at 7:36











  • ok i'm gonna try to sort it out. thank you guys

    – Ilse Van Dommelen
    Nov 12 '18 at 7:37















-1















For my website i want to make a dropdown selection.
Like in this website https://www.kingjamesbibleonline.org/ so i need the books>chapters>verse.



I am totally stuck. can somebody help me with the code please. This is a fragment of the JSON file.



improve this question















closed as off-topic by guradio, Quentin, Shree, tripleee, jww Nov 12 '18 at 8:08


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – guradio, Shree, tripleee, jww
If this question can be reworded to fit the rules in the help center, please edit the question.











  • 2





    This will helps you codebyamir.com/blog/populate-a-select-dropdown-list-with-json and stackoverflow.com/questions/18484762/…

    – Hamza Haider
    Nov 12 '18 at 7:29







  • 2





    Welcome to StackOverflow! In order for us to better help you, would you please update your question to contain all relevant code in a minimal, complete & verifiable example. Additionally, providing screenshots of the problem and details of what you’ve tried, make it much more likely that you’ll get a useful answer. For further information, please refer to the help article regarding how to ask good questions.

    – Bryce Howitson
    Nov 12 '18 at 7:33











  • Please validate the JSON snipped. Remove the trail comma from the end and add: ]} @HamzaHaider has some good examples!

    – Peter Bode
    Nov 12 '18 at 7:34












  • Can you send a proper JSON format? I can help you

    – Anand Deep Singh
    Nov 12 '18 at 7:36











  • ok i'm gonna try to sort it out. thank you guys

    – Ilse Van Dommelen
    Nov 12 '18 at 7:37













-1












-1








-1








For my website i want to make a dropdown selection.
Like in this website https://www.kingjamesbibleonline.org/ so i need the books>chapters>verse.



I am totally stuck. can somebody help me with the code please. This is a fragment of the JSON file.



improve this question
















For my website i want to make a dropdown selection.
Like in this website https://www.kingjamesbibleonline.org/ so i need the books>chapters>verse.



I am totally stuck. can somebody help me with the code please. This is a fragment of the JSON file.



improve this question








edited Nov 12 '18 at 7:38









Krupesh Kotecha

2,06811134




2,06811134










asked Nov 12 '18 at 7:26









Ilse Van DommelenIlse Van Dommelen

12




12




closed as off-topic by guradio, Quentin, Shree, tripleee, jww Nov 12 '18 at 8:08


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – guradio, Shree, tripleee, jww
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by guradio, Quentin, Shree, tripleee, jww Nov 12 '18 at 8:08


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – guradio, Shree, tripleee, jww
If this question can be reworded to fit the rules in the help center, please edit the question.







  • 2





    This will helps you codebyamir.com/blog/populate-a-select-dropdown-list-with-json and stackoverflow.com/questions/18484762/…

    – Hamza Haider
    Nov 12 '18 at 7:29







  • 2





    Welcome to StackOverflow! In order for us to better help you, would you please update your question to contain all relevant code in a minimal, complete & verifiable example. Additionally, providing screenshots of the problem and details of what you’ve tried, make it much more likely that you’ll get a useful answer. For further information, please refer to the help article regarding how to ask good questions.

    – Bryce Howitson
    Nov 12 '18 at 7:33











  • Please validate the JSON snipped. Remove the trail comma from the end and add: ] @HamzaHaider has some good examples!

    – Peter Bode
    Nov 12 '18 at 7:34












  • Can you send a proper JSON format? I can help you

    – Anand Deep Singh
    Nov 12 '18 at 7:36











  • ok i'm gonna try to sort it out. thank you guys

    – Ilse Van Dommelen
    Nov 12 '18 at 7:37












  • 2





    This will helps you codebyamir.com/blog/populate-a-select-dropdown-list-with-json and stackoverflow.com/questions/18484762/…

    – Hamza Haider
    Nov 12 '18 at 7:29







  • 2





    Welcome to StackOverflow! In order for us to better help you, would you please update your question to contain all relevant code in a minimal, complete & verifiable example. Additionally, providing screenshots of the problem and details of what you’ve tried, make it much more likely that you’ll get a useful answer. For further information, please refer to the help article regarding how to ask good questions.

    – Bryce Howitson
    Nov 12 '18 at 7:33











  • Please validate the JSON snipped. Remove the trail comma from the end and add: ]}} @HamzaHaider has some good examples!

    – Peter Bode
    Nov 12 '18 at 7:34












  • Can you send a proper JSON format? I can help you

    – Anand Deep Singh
    Nov 12 '18 at 7:36











  • ok i'm gonna try to sort it out. thank you guys

    – Ilse Van Dommelen
    Nov 12 '18 at 7:37







2




2





This will helps you codebyamir.com/blog/populate-a-select-dropdown-list-with-json and stackoverflow.com/questions/18484762/…

– Hamza Haider
Nov 12 '18 at 7:29






This will helps you codebyamir.com/blog/populate-a-select-dropdown-list-with-json and stackoverflow.com/questions/18484762/…

– Hamza Haider
Nov 12 '18 at 7:29





2




2





Welcome to StackOverflow! In order for us to better help you, would you please update your question to contain all relevant code in a minimal, complete & verifiable example. Additionally, providing screenshots of the problem and details of what you’ve tried, make it much more likely that you’ll get a useful answer. For further information, please refer to the help article regarding how to ask good questions.

– Bryce Howitson
Nov 12 '18 at 7:33





Welcome to StackOverflow! In order for us to better help you, would you please update your question to contain all relevant code in a minimal, complete & verifiable example. Additionally, providing screenshots of the problem and details of what you’ve tried, make it much more likely that you’ll get a useful answer. For further information, please refer to the help article regarding how to ask good questions.

– Bryce Howitson
Nov 12 '18 at 7:33













Please validate the JSON snipped. Remove the trail comma from the end and add: ]}} @HamzaHaider has some good examples!

– Peter Bode
Nov 12 '18 at 7:34






Please validate the JSON snipped. Remove the trail comma from the end and add: ]}} @HamzaHaider has some good examples!

– Peter Bode
Nov 12 '18 at 7:34














Can you send a proper JSON format? I can help you

– Anand Deep Singh
Nov 12 '18 at 7:36





Can you send a proper JSON format? I can help you

– Anand Deep Singh
Nov 12 '18 at 7:36













ok i'm gonna try to sort it out. thank you guys

– Ilse Van Dommelen
Nov 12 '18 at 7:37





ok i'm gonna try to sort it out. thank you guys

– Ilse Van Dommelen
Nov 12 '18 at 7:37












1 Answer
1






active

oldest

votes


















1














Welcome to SO. At a very basic level. You can group the select dropdown by



<select id="dino-select">
<optgroup label="Theropods">
<option>Tyrannosaurus</option>
<option>Velociraptor</option>
<option>Deinonychus</option>
</optgroup>
<optgroup label="Sauropods">
<option>Diplodocus</option>
<option>Saltasaurus</option>
<option>Apatosaurus</option>
</optgroup>
</select>


FYR, checkout https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup






share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Welcome to SO. At a very basic level. You can group the select dropdown by



    <select id="dino-select">
    <optgroup label="Theropods">
    <option>Tyrannosaurus</option>
    <option>Velociraptor</option>
    <option>Deinonychus</option>
    </optgroup>
    <optgroup label="Sauropods">
    <option>Diplodocus</option>
    <option>Saltasaurus</option>
    <option>Apatosaurus</option>
    </optgroup>
    </select>


    FYR, checkout https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup






    share|improve this answer



























      1














      Welcome to SO. At a very basic level. You can group the select dropdown by



      <select id="dino-select">
      <optgroup label="Theropods">
      <option>Tyrannosaurus</option>
      <option>Velociraptor</option>
      <option>Deinonychus</option>
      </optgroup>
      <optgroup label="Sauropods">
      <option>Diplodocus</option>
      <option>Saltasaurus</option>
      <option>Apatosaurus</option>
      </optgroup>
      </select>


      FYR, checkout https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup






      share|improve this answer

























        1












        1








        1







        Welcome to SO. At a very basic level. You can group the select dropdown by



        <select id="dino-select">
        <optgroup label="Theropods">
        <option>Tyrannosaurus</option>
        <option>Velociraptor</option>
        <option>Deinonychus</option>
        </optgroup>
        <optgroup label="Sauropods">
        <option>Diplodocus</option>
        <option>Saltasaurus</option>
        <option>Apatosaurus</option>
        </optgroup>
        </select>


        FYR, checkout https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup






        share|improve this answer













        Welcome to SO. At a very basic level. You can group the select dropdown by



        <select id="dino-select">
        <optgroup label="Theropods">
        <option>Tyrannosaurus</option>
        <option>Velociraptor</option>
        <option>Deinonychus</option>
        </optgroup>
        <optgroup label="Sauropods">
        <option>Diplodocus</option>
        <option>Saltasaurus</option>
        <option>Apatosaurus</option>
        </optgroup>
        </select>


        FYR, checkout https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 '18 at 7:33









        SelvamSelvam

        526415




        526415















            Popular posts from this blog

            PHP code is not being executed, instead code shows on the page

            Administrative divisions of China

            𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼