I have the below code on my product view page:
<input type="text" class="price required-entry input-text" name="price">
<span class="input-text-price-unit">INR</span>
Since it has require-entry class the default magento validation works fine but the position of the error div shifts the position of my label. Currently on validation failure the structure is:
<input type="text" class="price required-entry input-text validation-failed" name="price">
<div class="validation-advice" id="advice-required-entry-price" style="">This field is required.</div>
<span class="input-text-price-unit">INR</span>
However, I want it as:
<input type="text" class="price required-entry input-text validation-failed" name="price">
<span class="input-text-price-unit">INR</span>
<div class="validation-advice" id="advice-required-entry-price" style="">This field is required.</div>
I want the error div to be after the span.
Thank you.