I am trying to change button value dynamically but still no success read so many answers but for me no luck
Not sure about attr function, but you can use text to achieve your requirement.
For Static value
You can also use like below for dynamic value
var lable = "new lable"; $("#d").text(label)
Here is updated fiddle