|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can someone please tell me why this isnt working?
Code:
<p onClick="InsertContent('Standard')"><strong>+ Standard Single Bedroom </strong></p>
<div id="Standard" style="padding-left:60px; display:none">
<li type="square"><p>En-suite bathroom</p></li>
<li type="square"><p>Tea and coffee making facilities</p></li>
<li type="square"><p>Private telephones</p></li>
<li type="square"><p>Trouser press</p></li>
<li type="square"><p>Satellite television</p></li>
</div>
Also once i have the text to pop up underneath the title i would also like another div to be opened underneath this 1, do i just call both divs in the onClick? eg onClick="InsertContent('Standard,Superior')" |
|
#2
|
||||
|
||||
|
Where is your function InsertContent() ? In fact where is the rest of the javascript code which supposes to do what you say it should do?
|
|
#3
|
|||
|
|||
|
Ha, never mind, worked it out!
Forgot to add the <head> Java in post. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|