I would like to remove all the attributes that attribute name starts with 'data-val' in the fields that has a class 'read-only-state'
jQuery("[data-val^='tr']" )
This will give attribute 'data-val' value that starts with 'tr'
But i need to remove all the attributes that starts with 'data-val' in the matched elements.
How can i do it?