Jquery validation message not working

前端 未结 2 1569
北恋
北恋 2021-01-17 02:41

I want to use validation messages on a form, but when I click on the botton nothing happens and I don\'t know why. I have struggled with this problem for a while now and nob

2条回答
  •  死守一世寂寞
    2021-01-17 03:07

    You forgot to include the plugin in your code. I see jQuery, but the jQuery Validate plugin is missing...

    
    
        
            
            Module Health Measurements
    
            
            
            
    

    However, your doctype does not allow you to use numbers to start your name and id values. It's not valid HTML unless you're using HTML5. See: https://stackoverflow.com/a/79022/594235

    Otherwise, your code, as you posted it, is working fine in this jsFiddle (jsFiddle uses HTML5, which is why it works here).

    http://jsfiddle.net/bpmtf/

    Can anyone please send me a link where I can download a proper .css stylesheet

    You'd write your own CSS to style the page elements & layout, otherwise, CSS has absolutely nothing to do with how this plugin operates.

提交回复
热议问题