I have below HTML stracture. Here Class is used in some other places also. Please give me some solution of it.
<div ng-show="addEditBillingCodeForm.form.code.$error.required && addEditBillingCodeFormSubmitted" class="error-msg ng-scope" translate="MESSAGE_TOOLS_BILLING_CODE_REQ">Specify billing code</div>**strong text**
This solution requires jquery:
This likely won't work in practice as I imagine MESSAGE_TOOLS_BILLING_CODE_REQ prints to yes/no (see documentation on translate paramter). The following lines would work in that case but this will not be very specific and you will likely have similar selection issues to currently.
Or more specific, using the classes present as well:
It would be best to find something unique in the surrounding HTML structure. The easiest way would be to add a unique class to just the instances you want to edit, but otherwise the parents, etc are often heplful.