0

I am trying to do some jQuery validation. I am having a hard time getting a label into my project...

The Label will part of a jQuery UI Dialog, and whenever I have that label in my assignment jQuery UI dialog wont lode the div. I am a little confounded...

    %><%=Html.Label("",row)%><%

Validate function...

     $("#temp1").validate({
        rules: {
            HospitalFinNumber: {
                required: true,
                minlength: 6
            },
            AdminDate: { requried: true }
        }
    });

Boy howdy am I confused.

BenMorel
  • 34,448
  • 50
  • 182
  • 322
SoftwareSavant
  • 9,467
  • 27
  • 121
  • 195

1 Answers1

1

This is most likely because the for attribute on the label within the generated HTML is not valid; note your casing. You need to explicitly specify this via the overloaded Html.Label method.

Aaron McIver
  • 24,527
  • 5
  • 59
  • 88