Talha Habib Talha Habib - 10 months ago 50
jQuery Question

Change Button value on click without id or class

Let's suppose my button is as follows:

<input type="button" value="BLUE" name="button_blue" />

What I want is when I click the button,
should be changed to
or anything I want.


Since the button has name="button_blue" attribute, use Attribute Equals Selector


Working demo: http://jsfiddle.net/dw8kmh3g/