Category : hidden

I want to generate a random number and post it to php. <form method=”post” name=”login_post_form”> <label for=”username”>Username :</label> <input type=”text” name=”username” id=”username” /> <label for=”password”>Password :</label> <input type=”password” name=”password” id=”password” /> <input type=”hidden” name=”randomNumberGen” id=”randomNumberGen” value=”” /> <script> var randomNumber = Math.floor(Math.random() * 1000); document.getElementById(‘randomNumberGen’).value = randomNumber; </script> <input type=”submit” name=”submit” value=”Login” /> </form> It ..

Read more

I have a hidden div called recipeDetailsDiv inside a form as below $(“#recipes”).change(function() { var selectedVal = $(“#recipes”).val(); if (selectedVal != “”) { $(“#recipeDetailsDiv”).show(); } }); <form> <div class=”form-group”> <div class=”row”> <div class=”col-sm”> <label for=”recipes”>Recipes</label> <select class=”form-control” id=”recipes” name=”recipes” required> <option></option> <option>1</option> <option>2</option> </select> </div> </div> </div> <div class=”card” style=”margin-top: 10px;” id=”recipeDetailsDiv” hidden> <ul class=”list-group ..

Read more

Preciso de ajuda com esse código: <label for="servico">Qual serviço você deseja, contratar?</label> <select id="servico" name="servico" onChange="visivel()">a <option value="Formatação(ões)">Orçamento</option> <option value="Limpeza(s)">Limpeza</option> <option value="Montagem(s)">Montagem</option> </select> <div id=box_configProduto> <label for="configProduto">Oque deseja montar?</label> <select id="configProduto" name="configProduto"> <option value="">Nenhum</option> <option value=" de computador(es)">Computador</option> <option value=" de guarda-roupas">Guarda-Roupas</option> <option value=" de movel(eis)">Movel</option> </select> </div> <br> <script> var txt_servico = document.querySelector("#servico").value; txt_servico ..

Read more

I am trying to make a feature in which, if we click on a button, a hidden div will appear, but if I try to do it, it is not working. function reload(){ window.reload(); } function vis(x,z,a){ var xpar = document.getElementById(x); var zpar = document.getElementById(z); var apar = document.getElementById(a); xpar.style.display = “block”; zpar.style.display = “block”; ..

Read more

Situation: The user goes to the page of submit form after clicking the "joinBattle" button. After submitting the form, the system uploads word "hidden" to the relevant field which means that the user has participated the game. The system shows word "none" at style="display:none". Result: The system successfully hidden the button to avoid player participating ..

Read more

I am using Bootstrap v5 and it appears to be preventing my images from loading. I am using images on other parts of my site that load without issue. I write the following in html <img border="0" src="example.com/img/kitties-long.png" id="placedTop"> When I view my webpage through the developer tools. It reads: <img border="0" src=example.com/img/kitties-long.png" id="placedTop" hidden="" ..

Read more