I have implemented the Print feature in my application but the print button is the default dojo 'Print' text and dropdown icon.
What I want to do is remove the text and border and add an icon instead of the text.
I have been following this forum post but I am not getting the mentioned result:
var img = $('<img class="inline" src="img/print_icon.png" />');
$(".esriPrintButton").children(".dijitButtonNode").children(".dijitButtonContents").prepend(img);
$(".esriPrintButton").children(".dijitButtonNode").children(".dijitButtonContents").children(".dijitButtonText").text('');
This is my code so far. I am trying to change the html in the created button div. The script always runs but no changes to the html.