Due to the limitations of currency fields, I have a few number fields which I have set up in a way to mimic the look of a currency field. This is the JavaScript I'm using to populate the dollar sign to the left of the field:
$(document).ready(function() { $('#q286').before("$"); });
One issue I'm running into though is that if I hide that field via field rules, the dollar sign still remains. Is there any way I can revise the code to allow the dollar sign to be hidden along with the field and only display when the field is also visible?