title: How to get the value of li on dropdown menu click in laravel using jquery?
body: <p><a href="https://i.stack.imgur.com/8zOVf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8zOVf.png" alt="This is the exact view page"></a><strong>View Code:</strong></p>
  
  <pre><code> @foreach($liveValues as $live)
   &lt;tbody role="alert"&gt;
    &lt;td&gt;
    &lt;ul&gt;
       SKU:&lt;li  id="skuvalue" &gt;  {{$live-&gt;SKUID}}&lt;/li&gt;
     &lt;/ul&gt;
     &lt;/td&gt;
    &lt;div class="btn-group"&gt;
    &lt;button type="button" class="btn btn-default editSellingAttributes" 
    data-toggle="modal" data-target="" data-id="{{$live-&gt;SKUID}}"&gt;Edit 
    Selling Attributes&lt;/button&gt;
    &lt;button type="button" class="btn btn-default dropdown-toggle" data-
    toggle="dropdown"&gt;
    &lt;span class="caret"&gt;&lt;/span&gt;
    &lt;/button&gt;
    &lt;ul class="dropdown-menu" role="menu"&gt;
    &lt;li&gt;&lt;a href="{{url('editCatalogue')}}"&gt;Edit Catalogue&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="#"&gt;Archieve Listing&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;/div&gt;
    &lt;/tbody&gt;       
    @endforeach
  </code></pre>
  
  <p>This is laravel view where I have listed many <strong>skuid</strong> values fetched from db.  Also next to this I have listed a dropdown menu with Edit Catalogue and Archieve Listing. On clicking with the archieve listing I need to fetch the <strong>skuid</strong> listed in that row.</p>
  
  <p><strong>Script code:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  var liveSKUID=$("#skuvalue").val();
  alert(liveSKUID);
  });
  </code></pre>
  
  <p></p>
  
  <p>This is the simple script i have tried but it alerts '0'.</p>