Why do you include jQuery twice? <script type="text/javascript" language="javascript" src="jquery/ jquery-1.2.6.js"></script> <script src="jquery/jquery/lib/jquery.js" type="text/javascript"></ script>
On 2 Okt., 14:27, surya <[EMAIL PROTECTED]> wrote: > Thanks for ur reply, > > I also came to know that alert is working. I wrote the following > code but unable to locate the place of error. Could anyone have a look > at this one and suggest if any changes? > > <script type="text/javascript" language="javascript" src="jquery/ > jquery-1.2.6.js"></script> > <script src="jquery/jquery/lib/jquery.js" type="text/javascript"></ > script> > <script type="text/javascript" language="javascript" src="jquery/ > jquery/jquery.validate.js"></script> > <script type="text/javascript" language="javascript"> > $(document).ready(function(){ > $.validator.setDefaults({ > debug: false, > focusInvalidElement: true > > }); > $("#customers").validate({ > > rules: { > customers_gender: > { > required: true > }, > > customers_firstname: > { > required: true, > minlength: <?php echo ENTRY_FIRST_NAME_MIN_LENGTH; ?> > }, > > customers_lastname: { > required: true, > minlength: <?php echo ENTRY_LAST_NAME_MIN_LENGTH; ?> > }, > > customers_dob: { > required: true, > minlength: <?php echo ENTRY_DOB_MIN_LENGTH; ?> > }, > > customers_email_address: { > required: true, > email: <?php echo ENTRY_EMAIL_ADDRESS_MIN_LENGTH; ?> > }, > > entry_street_address:{ > required: true, > minlength: <?php echo ENTRY_STREET_ADDRESS_MIN_LENGTH; ?> > }, > > entry_postcode:{ > required: true, > number: <?php echo ENTRY_POSTCODE_MIN_LENGTH; ?> > }, > > entry_city:{ > required: true, > minlength: <?php echo ENTRY_CITY_MIN_LENGTH; ?> > }, > > entry_state:{ > required: true > }, > > entry_country_id:{ > required: true > } > }, > messages: { > customers_gender: { > required: "* Required" > }, > > customers_firstname: { > required: "* Required", > minlength: <?php echo ENTRY_FIRST_NAME_MIN_LENGTH; ?> + > " characters required" > }, > > customers_lastname: { > required: "* Required", > minlength: <?php echo ENTRY_LAST_NAME_MIN_LENGTH; ?> + > " characters required" > }, > > customers_dob: { > required: "* Required", > minlength: <?php echo ENTRY_DOB_MIN_LENGTH; ?> + > " characters required" > }, > > customers_email_address: { > required: "* Required", > email: "Please enter valid email" > }, > > entry_street_address: { > required: "* Required", > minlength: <?php echo ENTRY_STREET_ADDRESS_MIN_LENGTH; ?> + > " characters required" > }, > > entry_postcode: { > required: "* Required", > number: "Enter a valid number" > }, > > entry_city: { > required: "* Required", > minlength: <?php echo ENTRY_CITY_MIN_LENGTH; ?> + > " characters required" > }, > > entry_state: { > required: "* Required" > }, > > entry_country_id: { > required: "* Required" > } > > }, > submitHandler:function(){ document.customers.submit(); } > });}); > > </script> > > On Oct 2, 3:44 pm, "Simon Elliott" <[EMAIL PROTECTED]> > wrote: > > > I like using the console in the firebug plugin under firefox. > > > To write to the console from your javascript code: > > > var value = "bar"; > > > console.log("foo",value); > > >https://addons.mozilla.org/en-US/firefox/addon/1843 > > > 2008/10/2 surya <[EMAIL PROTECTED]> > > > > Hi everyone, > > > > Can any one help please? > > > > I am new to jquery. I am unable to debug my jquery as I am > > > unable to fix my issue. So I want to know the flow using alert > > > messages but alert is not working in jquery. How to display an alert > > > in jquery? > > > > Thanks, > > > Surya. > > > -- > > > Simon