Width of div using css('width')
Trying to get width, for simgwd (line #5), but keep getting NaN. I believe something has changed w/ jquery 1.8.
Can someone explain how I'm supposed to write this.
- $('[id^="order"]').each(function() {
- var simginitdisp = $(this).filter('[class^="searcher_stack-its_img"]').css('width');
- var simgwd = parseFloat(simginitdisp);
- console.log('Search Img Width: ' + simgwd);
- if (simgwd > 0) {
- console.log('Search Img Present');
- var contwd = $(this).next('[class^="searcher_stack-its_stacks"]').outerWidth(true);
- console.log('Content Width: ' + contwd);
- var availwd = $(this).css('width');
- console.log('Avail Overall Width: ' + availwd);
- }
- });
Here's my test page:
http://www.partiproductions.com/searchertest2/index.html
The only search img should be the blue image above "B2 Bold Text Red Border", right now just showing 7 NaN's.
Thanks, Bill