Currently I have the following:
$("textarea").each(function () {
});
I like to do the loop only for textareas where the element name starts with dvSummary.
Currently I have the following:
$("textarea").each(function () {
});
I like to do the loop only for textareas where the element name starts with dvSummary.
Use an 'attribute value starts with' selector, such as:
$("textarea[name^='dvSummary']")
See documentation here https://api.jquery.com/attribute-starts-with-selector for more examples.