Widget:Companies/Search: Difference between revisions

From TwogPedia
(Created page with "<div class="companies__search"> <div> <label for="companies__name">Name</label> <input type="text" id="companies__name" placeholder="Name..."> </div> <script> // Get the input and dropdown content elements var input = document.getElementById("search--input"); function updateTemplate() { var parameters = ''; let name = document.getElementById("location__name").value; if ( name !== '' ) parameters += '|name=' + name var contentContainer = document....")
 
mNo edit summary
Line 1: Line 1:
<div class="companies__search">
<div class="companies__search">
<div>
<div>
  <label for="companies__name">Name</label>
   <input type="text" id="companies__name" placeholder="Name...">
   <input type="text" id="companies__name" placeholder="Name...">
</div>
</div>
Line 11: Line 10:
function updateTemplate() {
function updateTemplate() {
   var parameters = '';
   var parameters = '';
   let name = document.getElementById("location__name").value;
   let name = document.getElementById("companies__name").value;
   if ( name !== '' ) parameters += '|name=' + name
   if ( name !== '' ) parameters += '|name=' + name



Revision as of 16:53, 26 March 2024