How do I change the font in java? | XM Community
Skip to main content

I have the below Java code added to a multiple text entry. Is there a way for me to edit the font and size of "USD" and "%"? Ideally, i want to use 10.5px. Thanks in advance for any help.

jQuery('input[type="text"]').eq(1).before("USD");
jQuery('input[type="text"]').eq(2).before("USD");
jQuery('input[type="text"]').eq(3).after("%")

I have the below Java code added to a multiple text entry. Is there a way for me to edit the font and size of "USD" and "%"? Ideally, i want to use 10.5px. Thanks in advance for any help.

jQuery('input[type="text"]').eq(1).before("USD");
jQuery('input[type="text"]').eq(2).before("USD");
jQuery('input[type="text"]').eq(3).after("%")


Hi MicheleQ ,
Yes, you can add the span tag and in that you can add the style like below or even you can simply add the

USD

tag.
jQuery('input[type="text"]').eq(1).before("USD");
jQuery('input[type="text"]').eq(2).before("USD");


SurajK , thank you so much for the quick response!


You can update the code as below:
jQuery('input[type="text"]').eq(1).before("

USD

");


Leave a Reply