Solved

Add "Out of Stock" to javascript/html table

Posted on 2011-09-22
1
232 Views
Last Modified: 2012-05-12
I have a website where cusotmers order instruments.  We are getting low on stock and I want to be able to add something to the site that says "Out of Stock"  

I've attached a doc that shows what the table looks like on our site.  I would like any way to visually show "Like New" & "Used" are out of stock.

I will attached the code that populates the table
Thanks!



 web-table.docx aeRntInstrumentSelect.aspx
0
Comment
Question by:mschirad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36899276
>I will attached the code that populates the table

why don't you add this column with this code?
if you've a SQL query somewhere :

SELECT instrument_type, CASE WHEN stock = 0 THEN 'Out of Stock' ELSE stock END FROM instruments
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question