Alan Smith
Posts: 0
Joined: Tue Jun 10, 2014 4:59 pm

Get button text value on click via javascript

I have some dynamically generated buttons.

I was to retrieve the button text via javascript.

Something like:

alert(jQuery(this).attr("button_text"));

Is this possible?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Get button text value on click via javascript

Hello Alan,

Please try the following:
prealert($(this).text());/pre

Return to “Issues”