troubleshooting Question

No error, but no value. Why?

Avatar of Bruce Gust
Bruce GustFlag for United States of America asked on
4 Comments1 Solution91 ViewsLast Modified:
Here's my code:

<div id="helper" style="display:none;"></div>
<input id="ord_reviewOrder_submit" type="button" class="btn_base btn_green_60" value="Submit" onclick="$('#ord_reviewOrderError').slideUp().html('');
       if($('#ord_deliveryMethod').val().length == 0 || $('#ord_deliveryCost').val().length == 0)
       var amount = $('#helper').val();
       $('#ord_reviewOrderError').append('A delivery method must be selected to process the order.<br/>');

Open in new window

What you're looking at is a part of a page that I'm being asked to troubleshoot.

The solution I'm trying to engineer will be looking for the value the API is going to be putting in the "helper" div.

Ultimately, I want to be able to evaluate that value, but for now I'm just trying to reproduce it and I can't get it to show up in the line that I have in bold.

There's no error, but there's no value either.

When I look at the source code, I can see this:

[code]<div id="helper">1000</div>

But I won't see "1000" in the "ord_reviewOrderError" div which is located toward the bottom of the page.

No error, but no value.

What am I missing?
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros