Toggle display of table :not first column










0















I have a table that starts off showing only the first column:



#tablegrid tr td:not(:first-child) 
display:none;



How can I display all of the other columns when a button is clicked?



Below is what I tried:



 $(document).on('click', '#revealbutton', function() 
$("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
);









share|improve this question
























  • Its a proposital thing or you missed it ? on your script example you opened a script tag and closed a style tag it must be style in the first tag ?

    – João Deroldo
    Nov 14 '18 at 17:15











  • Fixed that. But still does not work with both style tags

    – user749798
    Nov 14 '18 at 17:18











  • Why are you appending style to the head? Why not just use $('#tablegrid tr td').show();?

    – Snake14
    Nov 14 '18 at 17:19















0















I have a table that starts off showing only the first column:



#tablegrid tr td:not(:first-child) 
display:none;



How can I display all of the other columns when a button is clicked?



Below is what I tried:



 $(document).on('click', '#revealbutton', function() 
$("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
);









share|improve this question
























  • Its a proposital thing or you missed it ? on your script example you opened a script tag and closed a style tag it must be style in the first tag ?

    – João Deroldo
    Nov 14 '18 at 17:15











  • Fixed that. But still does not work with both style tags

    – user749798
    Nov 14 '18 at 17:18











  • Why are you appending style to the head? Why not just use $('#tablegrid tr td').show();?

    – Snake14
    Nov 14 '18 at 17:19













0












0








0








I have a table that starts off showing only the first column:



#tablegrid tr td:not(:first-child) 
display:none;



How can I display all of the other columns when a button is clicked?



Below is what I tried:



 $(document).on('click', '#revealbutton', function() 
$("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
);









share|improve this question
















I have a table that starts off showing only the first column:



#tablegrid tr td:not(:first-child) 
display:none;



How can I display all of the other columns when a button is clicked?



Below is what I tried:



 $(document).on('click', '#revealbutton', function() 
$("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
);






javascript jquery css






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 14 '18 at 17:17







user749798

















asked Nov 14 '18 at 17:13









user749798user749798

1,48583058




1,48583058












  • Its a proposital thing or you missed it ? on your script example you opened a script tag and closed a style tag it must be style in the first tag ?

    – João Deroldo
    Nov 14 '18 at 17:15











  • Fixed that. But still does not work with both style tags

    – user749798
    Nov 14 '18 at 17:18











  • Why are you appending style to the head? Why not just use $('#tablegrid tr td').show();?

    – Snake14
    Nov 14 '18 at 17:19

















  • Its a proposital thing or you missed it ? on your script example you opened a script tag and closed a style tag it must be style in the first tag ?

    – João Deroldo
    Nov 14 '18 at 17:15











  • Fixed that. But still does not work with both style tags

    – user749798
    Nov 14 '18 at 17:18











  • Why are you appending style to the head? Why not just use $('#tablegrid tr td').show();?

    – Snake14
    Nov 14 '18 at 17:19
















Its a proposital thing or you missed it ? on your script example you opened a script tag and closed a style tag it must be style in the first tag ?

– João Deroldo
Nov 14 '18 at 17:15





Its a proposital thing or you missed it ? on your script example you opened a script tag and closed a style tag it must be style in the first tag ?

– João Deroldo
Nov 14 '18 at 17:15













Fixed that. But still does not work with both style tags

– user749798
Nov 14 '18 at 17:18





Fixed that. But still does not work with both style tags

– user749798
Nov 14 '18 at 17:18













Why are you appending style to the head? Why not just use $('#tablegrid tr td').show();?

– Snake14
Nov 14 '18 at 17:19





Why are you appending style to the head? Why not just use $('#tablegrid tr td').show();?

– Snake14
Nov 14 '18 at 17:19












5 Answers
5






active

oldest

votes


















1














Edit your code as display:table-cell not display: show






$(document).on('click', '#revealbutton', function() 
$("<style> #tablegrid tr td:not(:first-child) display:table-cell; </style>").appendTo("head");
);

#tablegrid tr td:not(:first-child) 
display:none;

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table id="tablegrid">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>

<button id="revealbutton">click me</button>








share|improve this answer






























    0














    If i understand correctly you could make something like this






    $("button").on("click", function()
    $("table tr td:not(:first-child)").hide();
    );

    <html>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <button>remove</button>
    <table>
    <tr>
    <td>adsa</td>
    <td>asdas</td>
    <td>adasd</td>
    <td>adad</td>
    <td>adasd</td>
    <td>asdasd</td>
    </tr>
    </table>
    </html>








    share|improve this answer























    • I think that your snippet does the opposite of what the OP is asking. I think that .hide() should be .show() and all but the first row should start out hidden.

      – Snake14
      Nov 14 '18 at 17:25


















    0














    Try this, is appending now!



     $('#revealbutton').on('click', function() 
    $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
    );


    Let me know if that help!






    share|improve this answer






























      0














      You have correct code,
      But it's just the Opening script tag.
      replace it with: <style>/*A code here*/</style>
      Maybe that's just being Confusing?
      Besides that, Everything is goood.






       $(document).on('click', '#revealbutton', function() 
      $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
      );

      #tablegrid tr td:not(:first-child) 
      display:none;

      <html>
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
      <body>
      <table>
      <tr id=tablegrid>
      <td>1</td>
      <td>2</td>
      </tr>
      </table>
      </body>
      </html>





      This should be the Source code.



      Hopes this helps!






      share|improve this answer






























        0














        Unless I misunderstood your question, I think that you're over complicating things. Why not just use .show()



        $(document).on('click', '#revealbutton', function() 
        $('#tablegrid tr td').show();
        );


        It works in JSFiddle






        share|improve this answer
























          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53305516%2ftoggle-display-of-table-not-first-column%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          5 Answers
          5






          active

          oldest

          votes








          5 Answers
          5






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          Edit your code as display:table-cell not display: show






          $(document).on('click', '#revealbutton', function() 
          $("<style> #tablegrid tr td:not(:first-child) display:table-cell; </style>").appendTo("head");
          );

          #tablegrid tr td:not(:first-child) 
          display:none;

          <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
          <table id="tablegrid">
          <tr>
          <td>1</td>
          <td>2</td>
          <td>3</td>
          <td>4</td>
          </tr>
          </table>

          <button id="revealbutton">click me</button>








          share|improve this answer



























            1














            Edit your code as display:table-cell not display: show






            $(document).on('click', '#revealbutton', function() 
            $("<style> #tablegrid tr td:not(:first-child) display:table-cell; </style>").appendTo("head");
            );

            #tablegrid tr td:not(:first-child) 
            display:none;

            <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
            <table id="tablegrid">
            <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
            <td>4</td>
            </tr>
            </table>

            <button id="revealbutton">click me</button>








            share|improve this answer

























              1












              1








              1







              Edit your code as display:table-cell not display: show






              $(document).on('click', '#revealbutton', function() 
              $("<style> #tablegrid tr td:not(:first-child) display:table-cell; </style>").appendTo("head");
              );

              #tablegrid tr td:not(:first-child) 
              display:none;

              <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
              <table id="tablegrid">
              <tr>
              <td>1</td>
              <td>2</td>
              <td>3</td>
              <td>4</td>
              </tr>
              </table>

              <button id="revealbutton">click me</button>








              share|improve this answer













              Edit your code as display:table-cell not display: show






              $(document).on('click', '#revealbutton', function() 
              $("<style> #tablegrid tr td:not(:first-child) display:table-cell; </style>").appendTo("head");
              );

              #tablegrid tr td:not(:first-child) 
              display:none;

              <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
              <table id="tablegrid">
              <tr>
              <td>1</td>
              <td>2</td>
              <td>3</td>
              <td>4</td>
              </tr>
              </table>

              <button id="revealbutton">click me</button>








              $(document).on('click', '#revealbutton', function() 
              $("<style> #tablegrid tr td:not(:first-child) display:table-cell; </style>").appendTo("head");
              );

              #tablegrid tr td:not(:first-child) 
              display:none;

              <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
              <table id="tablegrid">
              <tr>
              <td>1</td>
              <td>2</td>
              <td>3</td>
              <td>4</td>
              </tr>
              </table>

              <button id="revealbutton">click me</button>





              $(document).on('click', '#revealbutton', function() 
              $("<style> #tablegrid tr td:not(:first-child) display:table-cell; </style>").appendTo("head");
              );

              #tablegrid tr td:not(:first-child) 
              display:none;

              <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
              <table id="tablegrid">
              <tr>
              <td>1</td>
              <td>2</td>
              <td>3</td>
              <td>4</td>
              </tr>
              </table>

              <button id="revealbutton">click me</button>






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 14 '18 at 17:24









              Luu Hoang BacLuu Hoang Bac

              12911




              12911























                  0














                  If i understand correctly you could make something like this






                  $("button").on("click", function()
                  $("table tr td:not(:first-child)").hide();
                  );

                  <html>
                  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                  <button>remove</button>
                  <table>
                  <tr>
                  <td>adsa</td>
                  <td>asdas</td>
                  <td>adasd</td>
                  <td>adad</td>
                  <td>adasd</td>
                  <td>asdasd</td>
                  </tr>
                  </table>
                  </html>








                  share|improve this answer























                  • I think that your snippet does the opposite of what the OP is asking. I think that .hide() should be .show() and all but the first row should start out hidden.

                    – Snake14
                    Nov 14 '18 at 17:25















                  0














                  If i understand correctly you could make something like this






                  $("button").on("click", function()
                  $("table tr td:not(:first-child)").hide();
                  );

                  <html>
                  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                  <button>remove</button>
                  <table>
                  <tr>
                  <td>adsa</td>
                  <td>asdas</td>
                  <td>adasd</td>
                  <td>adad</td>
                  <td>adasd</td>
                  <td>asdasd</td>
                  </tr>
                  </table>
                  </html>








                  share|improve this answer























                  • I think that your snippet does the opposite of what the OP is asking. I think that .hide() should be .show() and all but the first row should start out hidden.

                    – Snake14
                    Nov 14 '18 at 17:25













                  0












                  0








                  0







                  If i understand correctly you could make something like this






                  $("button").on("click", function()
                  $("table tr td:not(:first-child)").hide();
                  );

                  <html>
                  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                  <button>remove</button>
                  <table>
                  <tr>
                  <td>adsa</td>
                  <td>asdas</td>
                  <td>adasd</td>
                  <td>adad</td>
                  <td>adasd</td>
                  <td>asdasd</td>
                  </tr>
                  </table>
                  </html>








                  share|improve this answer













                  If i understand correctly you could make something like this






                  $("button").on("click", function()
                  $("table tr td:not(:first-child)").hide();
                  );

                  <html>
                  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                  <button>remove</button>
                  <table>
                  <tr>
                  <td>adsa</td>
                  <td>asdas</td>
                  <td>adasd</td>
                  <td>adad</td>
                  <td>adasd</td>
                  <td>asdasd</td>
                  </tr>
                  </table>
                  </html>








                  $("button").on("click", function()
                  $("table tr td:not(:first-child)").hide();
                  );

                  <html>
                  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                  <button>remove</button>
                  <table>
                  <tr>
                  <td>adsa</td>
                  <td>asdas</td>
                  <td>adasd</td>
                  <td>adad</td>
                  <td>adasd</td>
                  <td>asdasd</td>
                  </tr>
                  </table>
                  </html>





                  $("button").on("click", function()
                  $("table tr td:not(:first-child)").hide();
                  );

                  <html>
                  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                  <button>remove</button>
                  <table>
                  <tr>
                  <td>adsa</td>
                  <td>asdas</td>
                  <td>adasd</td>
                  <td>adad</td>
                  <td>adasd</td>
                  <td>asdasd</td>
                  </tr>
                  </table>
                  </html>






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 14 '18 at 17:20









                  João DeroldoJoão Deroldo

                  39518




                  39518












                  • I think that your snippet does the opposite of what the OP is asking. I think that .hide() should be .show() and all but the first row should start out hidden.

                    – Snake14
                    Nov 14 '18 at 17:25

















                  • I think that your snippet does the opposite of what the OP is asking. I think that .hide() should be .show() and all but the first row should start out hidden.

                    – Snake14
                    Nov 14 '18 at 17:25
















                  I think that your snippet does the opposite of what the OP is asking. I think that .hide() should be .show() and all but the first row should start out hidden.

                  – Snake14
                  Nov 14 '18 at 17:25





                  I think that your snippet does the opposite of what the OP is asking. I think that .hide() should be .show() and all but the first row should start out hidden.

                  – Snake14
                  Nov 14 '18 at 17:25











                  0














                  Try this, is appending now!



                   $('#revealbutton').on('click', function() 
                  $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                  );


                  Let me know if that help!






                  share|improve this answer



























                    0














                    Try this, is appending now!



                     $('#revealbutton').on('click', function() 
                    $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                    );


                    Let me know if that help!






                    share|improve this answer

























                      0












                      0








                      0







                      Try this, is appending now!



                       $('#revealbutton').on('click', function() 
                      $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                      );


                      Let me know if that help!






                      share|improve this answer













                      Try this, is appending now!



                       $('#revealbutton').on('click', function() 
                      $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                      );


                      Let me know if that help!







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 14 '18 at 17:21









                      MartinBAMartinBA

                      7161213




                      7161213





















                          0














                          You have correct code,
                          But it's just the Opening script tag.
                          replace it with: <style>/*A code here*/</style>
                          Maybe that's just being Confusing?
                          Besides that, Everything is goood.






                           $(document).on('click', '#revealbutton', function() 
                          $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                          );

                          #tablegrid tr td:not(:first-child) 
                          display:none;

                          <html>
                          <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                          <body>
                          <table>
                          <tr id=tablegrid>
                          <td>1</td>
                          <td>2</td>
                          </tr>
                          </table>
                          </body>
                          </html>





                          This should be the Source code.



                          Hopes this helps!






                          share|improve this answer



























                            0














                            You have correct code,
                            But it's just the Opening script tag.
                            replace it with: <style>/*A code here*/</style>
                            Maybe that's just being Confusing?
                            Besides that, Everything is goood.






                             $(document).on('click', '#revealbutton', function() 
                            $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                            );

                            #tablegrid tr td:not(:first-child) 
                            display:none;

                            <html>
                            <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                            <body>
                            <table>
                            <tr id=tablegrid>
                            <td>1</td>
                            <td>2</td>
                            </tr>
                            </table>
                            </body>
                            </html>





                            This should be the Source code.



                            Hopes this helps!






                            share|improve this answer

























                              0












                              0








                              0







                              You have correct code,
                              But it's just the Opening script tag.
                              replace it with: <style>/*A code here*/</style>
                              Maybe that's just being Confusing?
                              Besides that, Everything is goood.






                               $(document).on('click', '#revealbutton', function() 
                              $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                              );

                              #tablegrid tr td:not(:first-child) 
                              display:none;

                              <html>
                              <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                              <body>
                              <table>
                              <tr id=tablegrid>
                              <td>1</td>
                              <td>2</td>
                              </tr>
                              </table>
                              </body>
                              </html>





                              This should be the Source code.



                              Hopes this helps!






                              share|improve this answer













                              You have correct code,
                              But it's just the Opening script tag.
                              replace it with: <style>/*A code here*/</style>
                              Maybe that's just being Confusing?
                              Besides that, Everything is goood.






                               $(document).on('click', '#revealbutton', function() 
                              $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                              );

                              #tablegrid tr td:not(:first-child) 
                              display:none;

                              <html>
                              <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                              <body>
                              <table>
                              <tr id=tablegrid>
                              <td>1</td>
                              <td>2</td>
                              </tr>
                              </table>
                              </body>
                              </html>





                              This should be the Source code.



                              Hopes this helps!






                               $(document).on('click', '#revealbutton', function() 
                              $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                              );

                              #tablegrid tr td:not(:first-child) 
                              display:none;

                              <html>
                              <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                              <body>
                              <table>
                              <tr id=tablegrid>
                              <td>1</td>
                              <td>2</td>
                              </tr>
                              </table>
                              </body>
                              </html>





                               $(document).on('click', '#revealbutton', function() 
                              $("<style> #tablegrid tr td:not(:first-child) display:show; </style>").appendTo("head");
                              );

                              #tablegrid tr td:not(:first-child) 
                              display:none;

                              <html>
                              <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
                              <body>
                              <table>
                              <tr id=tablegrid>
                              <td>1</td>
                              <td>2</td>
                              </tr>
                              </table>
                              </body>
                              </html>






                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Nov 14 '18 at 17:24









                              PIZZZZZZZZZZZA is herePIZZZZZZZZZZZA is here

                              778




                              778





















                                  0














                                  Unless I misunderstood your question, I think that you're over complicating things. Why not just use .show()



                                  $(document).on('click', '#revealbutton', function() 
                                  $('#tablegrid tr td').show();
                                  );


                                  It works in JSFiddle






                                  share|improve this answer





























                                    0














                                    Unless I misunderstood your question, I think that you're over complicating things. Why not just use .show()



                                    $(document).on('click', '#revealbutton', function() 
                                    $('#tablegrid tr td').show();
                                    );


                                    It works in JSFiddle






                                    share|improve this answer



























                                      0












                                      0








                                      0







                                      Unless I misunderstood your question, I think that you're over complicating things. Why not just use .show()



                                      $(document).on('click', '#revealbutton', function() 
                                      $('#tablegrid tr td').show();
                                      );


                                      It works in JSFiddle






                                      share|improve this answer















                                      Unless I misunderstood your question, I think that you're over complicating things. Why not just use .show()



                                      $(document).on('click', '#revealbutton', function() 
                                      $('#tablegrid tr td').show();
                                      );


                                      It works in JSFiddle







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Nov 15 '18 at 2:26









                                      PIZZZZZZZZZZZA is here

                                      778




                                      778










                                      answered Nov 14 '18 at 17:36









                                      Snake14Snake14

                                      28917




                                      28917



























                                          draft saved

                                          draft discarded
















































                                          Thanks for contributing an answer to Stack Overflow!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid


                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.

                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function ()
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53305516%2ftoggle-display-of-table-not-first-column%23new-answer', 'question_page');

                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Use pre created SQLite database for Android project in kotlin

                                          Darth Vader #20

                                          Ondo