• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Not able to validate dynamic combo box.

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,
Here is my link http://183.78.169.54/v3/addRoute.php where I can build dynamic combo boxes but the problem now is that I tried validating using both echo "<td><select class='required' id='locationFrom[]' name='locationFrom[]' >"; and also like below. Unfortunately both does not work. Really lost how to validate combo boxes? Need help thank you.


 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First let's start using correct terminology -- it's not a "combo box". HTML has no combo box controls. It's a select element, sometimes called a dropdown. Read HtmlHasNoComboBox.

And, as you are already using jQuery in your page, you should look into the jQuery Validation Plugin that will make it easy to add validation to your forms.
 
sukbir frwa
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Biebeault,
Sorry for the term. Ok will use select. The problem I have tried to validate the select using both method but no avail. So link you gave I dont see any select validation under their demo too. This is extra .js I must use is it? I am confuse and lost.

Bear Bibeault wrote:First let's start using correct terminology -- it's not a "combo box". HTML has no combo box controls. It's a select element, sometimes called a dropdown. Read HtmlHasNoComboBox.

And, as you are already using jQuery in your page, you should look into the jQuery Validation Plugin that will make it easy to add validation to your forms.

 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not clean up your code (it has commented-out code and syntax errors that make it difficult to tell what you are trying to accomplish) and tell us what exactly problems you are having I can't tell from your first post.
 
sukbir frwa
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Bibeault,
Is very simple. Can you visit this link now http://183.78.169.54/v3/addRoute.php ? Can you press the top Add Button? Eventually if that works means you will keep getting new rows of select elements. So that I have implemented succesffully. Now when you press the bottom button Submit I would like to validate that the select elements have been selected. Thats all. Thank you I hope I am clearer now?

Bear Bibeault wrote:Why not clean up your code (it has commented-out code and syntax errors that make it difficult to tell what you are trying to accomplish) and tell us what exactly problems you are having I can't tell from your first post.

 
reply
    Bookmark Topic Watch Topic
  • New Topic