Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Add "Out of Stock" to javascript/html table

Posted on 2011-09-22
1
Medium Priority
?
240 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 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

661 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