How can we create expandable div using HTML?
-
My requirement is.... I have a button, when I click on that it should show up some data(in the form of table) and when I click on it the next time, it should hide that data. Basically, I want to create an expandable div. When I click on the button,the data should be shown on top of the current page.It should not expand on the same page. Can anybody tell me..how to do this? Can it be done in HTML using Javascript? I have searched in net and got some examples. But they all are for expanding the data in the current page..not on top the current page. Please help me out... Thanks in advance... Regards. eric
-
Answer:
yes it is possible <script lenguage="text/javascript"> function show() { document.getElementById("divhidden").sty… } function hide() { document.getElementById("divhidden").sty… } </script> <div style="display:none"></div> <input type="button" value="show" onClick="show();this.value='dbl click to hide'" ondblClick="hide();this.value='show'"> ok, if you have one more questions feel free to contact me, i'll help you with big pleasure ;)
jill at Yahoo! Answers Visit the source
Related Q & A:
- How do i create virtual subdomain using htaccess?Best solution by Stack Overflow
- If I have a form, such as an application, how can I fill it out using my computer?Best solution by answers.yahoo.com
- How Can I Create an XML to Create a Menu?Best solution by Drupal Answers
- How can I earn(collect) money using my blog in India?Best solution by Yahoo! Answers
- How can I play my PS3 using a laptop as a monitor?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.