The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> If statement to show/hide one of two tables
zarcher
post Mar 27 2012, 03:10 PM
Post #1





Group: Members
Posts: 3
Joined: 27-March 12
Member No.: 16,802



This is a custom balloon for Google Maps.

Depending on the values of the cells, I want just one of these tables to appear. If there is a value for {Last Reading}, I want the first table to appear. Otherwise, the second table should appear. Please help.

<div style='font-family: sans-serif'>
<center>

<table border="1">
<tr>
<td><b>Instrument ID</b></td>
<td>{Instrument ID}</td>
<td><b>Last Reading</b></td>
<td>{Last Reading}</td>
</tr>
</table>
</div>

</center>
<b>Notes:</b> {Notes}

<div style='font-family: sans-serif'>
<table border="1">
<tr>
<td><b>Ring #</b></td>
<td>{Instrument ID}</td>
<td><b>Tgt Face Pressure</b></td>
<td>{Target Face Pressure}</td>
</tr>

</table>
</div>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 11:55 AM