javascript - GetValue Nested Input JS -


i have html:

<div class="alaves"> <h4>admin</h4> <input type="hidden" value=1> </div> //...there have 10 class="alaves" inputs 

and need if clicked show value; not working.

and js:

$(document).ready(function () {     $('.alaves').click(function () {         assert( this.getelementsbytagname('input').val);     }); }); 

i'm guessing mean:

$(function (){     $('.alaves').click(function (){         $("input", this).each(function(){             assert(this.value);         });     }); }); 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -