0
I need to make an interaction between two tables in a side tab, where initially an "answer" table is hidden and the "question" table will be available and so on input
search above them I type something via AJAX will automatically appear in the table "question", until then resolved
How to hide the second table which is the one I want to appear only after I click on an item? That is, the question of the first table and the first table is now.
If the question is ONLY of "disappear" and "appear", you can use
$('#tabela_para_sumir').css('display', 'none');
and$('#tabela_para_aparecer').css('display', 'block');
, addition in the element ofid="tabela_para_aparecer"
the parameterstyle="display:none;"
. If you are not using Jquery, use similar functions for the purpose of changing thedisplay
CSS. You can also get by using$(...).hide()
and$(...).show()
, for the respective functions, if you use Jquery.– Inkeliz
You only need to use ajax if you are going to make a request in the bank. In the question you do not mention it. If you are not making any request you can try what the friend above suggested.
– Joao Paulo
So Inkeliz and Joao Paulo, thank you for the explanations, helped me clear my mind, well I used in Document.ready the $("#teste_faq_reply"). Hide(); and then when accessing the page this hidden beauty but ai in the table where I can capture the BD data I need that are the table questions in mysql called "confidential name"_Faq when clicking on a line where this the question I need to appear the answer to later I cannot make appear to another table or pebble which type and tag I have already tried to use "p" to appear the answer and hide the question.
– user53616
Thanks for the tips I managed to make disappear and appear another table with the answers now my next step is to make appear exactly the answer of the question I selected, anyone have any tips? heartfelt thanks!
– user53616