View Single Post
  #13  
Old 03-06-2008, 10:35 AM
 
bobb bobb is offline
 

Member
  
Join Date: Jul 2005
Location: LI, NY, USA
Posts: 27
 

Default Re: Pre filled search text box

No need for code. Make the first option ( # zero) a heading like CHOOSE XYZ.. Then don't allow it pass validation.
Code:
if (product_option('RATIO_+_UNIT').selectedIndex == 0) { alert('You must select a ratio and carrier!'); return false; } else { return true; }
Well that is code, but it gets input as data!
__________________
X-Cart Gold v 4.0.18
FreeBSD 6.2, Apache 2.2.11, PERL 5.8.8, PHP 5.2.10, MySQL 5.0.84
rearendparts.com
Reply With Quote