Search
 
SCRIPT & CODE EXAMPLE
 

HTML

get all values in hidden field with the same name

<!--html-->
<input type="hidden" name="customerID" id="customerID1" value="aa190809" />
<input type="hidden" name="customerID" id="customerID2" value="aa190810" />
<input type="hidden" name="customerID" id="customerID3" value="" />

<script>
$("input[name=customerID]").each(function(){
    //get attributes
    console.log(this.id + " with value: " + this.value);
    
    //set values
    if (this.value == "") {
      this.value = "my new value";
    }
    
});
</script>
Comment

PREVIOUS NEXT
Code Example
Html :: HTML <address for Contact Information 
Html :: span? 
Html :: tips for a perfect cake 
Html :: a tag redirect to particular section of another page 
Html :: display c# code in html 
Html :: equal symbol expected spring form 
Html :: html non importa immagini in webpack 
Html :: how to create div with class in vs code html shortcut 
Html :: how to make an iframe 
Html :: basic steps convert design into html 
Html :: matrix in html 
Html :: label input mdn 
Html :: ta html inside vue data function 
Html :: Theological 
Html :: them my login custom dashboard 
Html :: select html gray safari 
Html :: make select option look like button 
Html :: picture html tag 
Html :: ifreame on page with random video 
Html :: how to make password in html correct or incorrect 
Html :: import localstorage 
Html :: get all classes from html file 
Html :: sms link with body ios and android 
Html :: tailwindcss letterspacing 
Html :: dollar zero html 
Html :: kanaankanaan123 
Html :: convert web to application 
Html :: pulsating icons 
Html :: barra de navegacion vertical bootstrap 
Html :: javascript on enter search 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =