Bhagya Bhagya - 11 months ago 53
jQuery Question

jQuery changing Button value not working

I am trying to change button value dynamically but still no success read so many answers but for me no luck




<button id="d"></button>

here is fiddle


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";    

Here is updated fiddle