View Single Post
  #6  
Old 01-09-2013, 05:31 PM
 
pifemaster pifemaster is offline
 

Member
  
Join Date: Sep 2003
Posts: 14
 

Default Re: Make Custom Text Field Required???

Mike,

Thank you very much for the reply. Here is a link to one of my product pages:
http://www.pifemaster.com/store/video-combo-pack.html

I did use Google Chrome to inspect the 2 boxes input fields and here are the results:
<input id="po9" type="text" name="product_options[9]" value="">
&
<input id="po8" type="text" name="product_options[8]" value="">

So... if I want to make sure they type SOMETHING in each of the 2 input fields, would this work?

var option = $('#po9').val();
if(option == '' or option == null) {
alert("Please enter the date that the highlight video was taken! ");
return false;
}

var option = $('#po8').val();
if(option == '' or option == null) {
alert("Please enter the name of the client in the highlight video! ");
return false;
}

This is completely over my head so I appreciate your help.
__________________
Thank you,
Robert Pfeifer
www.pifemaster.com
Xcart Gold V 4.6.0
Reply With Quote