Thanks for your answer zack.
I read the link you sent and, finally I get it!!
After all, I have the following code, and it makes the job I want:
- <script type="text/javascript" src="jquery.js"> </script>
- <script type="text/javascript">
- function get() {
- $.getJSON('data.php', { name: '5' }, function(data) {
- var items = [];
- $('#descricao_completa').val(data.descricao_completa).show();
- $('#descricao_curta').val(data.descricao_curta).show();
- });
- }
- </script>
Can you check my code to see if there's any issue or something else that can me bettered?
Thank you once more for your help.
Best regards,
Mário