0
I have a table that has about 30 input fields to perform a release, example:
<input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlength="8" />
<input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlength="8" />
<input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlength="8" />
<input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlength="8" />
Here comes the problem, I don’t know anything about jQuery or AJAX, and everything I search through the internet uses examples using them, but they don’t explain what each thing does so I can’t adapt to my need. I work with PHP where this form I get on another page on which I will write the data in the BD, but before I need that when a code is typed in the field and is given the focus in the next field, he searches in the BD the equipment referring to that code and returns the result in a field beside, successively for each of the fields, which are exactly the same as in the example above!
Take a look at this site here: http://jqapi.com/#p=jQuery.ajax ; This is the jQuery documentation. Think about
Ajax
as an HTTP request made by Javascript, that’s it. The server only needs to respond to the data you ask when sending the request. But I advise you to study jQuery for real: http://fabrica.ms.senac.br/2013/06/jquery-um-simples-tutorial-beginners/– Daniel
Thanks @Daniel, I will rather give a read on these materials you linked here!
– JonatasM