HTML form autofill right value -
i've got html form:
<form> <input name="name" type="text" class="feedback-input" placeholder="naam" /> <input name="crebonummer" type="number" pattern="\d*" class="feedback-input" placeholder="crebonummer" /> <input type="text" name="opleiding en niveau" class="feedback-input" id="autocomplete" placeholder="opleiding en niveau"> <input type="radio" id="radio1" name="radios" class="feedback-input border-left" value="all" checked=""> <label for="radio1" class="fl border-left">leerweg bbl</label> <input type="radio" id="radio2" name="radios" class="feedback-input border-right" value="false"> <label for="radio2" class="border-right">leerweg bol</label> <input type="date" placeholder="wanneer moet je stage lopen?" class="feedback-input"> </form>
when second field ("crebonummer") completed number, want next field ("opleiding en niveau") automatically being filled linked information depending on number.
for example: number filled in 12345 value linked number is: test1234 , automatically filled in next field.
is there script doing that?
you should use scripting language javascript. use ajax retrieved data , parse result textbox. try refer link http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_first.
Comments
Post a Comment