Fix a control's id inside a Listview

I have a textbox with a required field validator inside a listview. The problem right now is the page has a number of dynamically generated steps that when is loaded, they go through a validator basically done by using the jQuery Page.Validate() to see if there are any fields that were missing required values. I am getting a javascript error on this required field validator that is on this listview where its complaining about the id having dashes. See below.

enter image description here

Is there a way to clean this id up so it gets rid of the dashes as we all know, jQuery doesn’t like the dashes in the variable name. How would I go about cleaning this up? I am getting the console error below.

enter image description here

enter image description here

Let me know if additional details are required. Thanks!

Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.