oops sorry for the confusion... The code is the way you have written it.
The thing is I have this javascript function that goes like this:
so that it will be able to look thru the whole list of my dynamic checkboxes to make sure I have ticked at least one checkbox. But it doesn't seem to work. Is it cos scriptlet is server-side scripting while javascipt is client-side? Is there anyway I can get around it?
I need to ensure that at least one checkbox in my whole list of dynamic checkboxes are ticked. I think the problem is I don't know how to get the input name value out so that I can use javascript.
Hope someone can enlighten me. Hope to hear from you guys soon!
I have a customer's name as an attribute of a reservation object stored in my vector of reservation objects. My current search only does an exact match of a customer name. How do I do a partial word search eg. if my customer name is danielle and I only key in dan, how do i get it to return danielle?
but now i m havin another problem.. I need to display ALL records that have the same name. but when i put in a for loop like this, it jus keeps repeating the first record many times. how do i code such tt it returns all the records tt have the same custName?
If I want a user to input a date alone, not with time, how can I do it? Eg. A customer calls to make a reservation at a restaurant, the user has to key in a date that the customer wants to reserve the place for.
I can't use int cos validating data will be very troublesome right? Is it possible to show me an example? Furthermore, I need to store the date attribute in an object reservation and to later on implement a search function based on the date.
Would really appreciate an example. Thanks so much..