Bhagya Bhagya - 1 year ago 86
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

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download