Skip to Content
0
Former Member
Aug 09, 2016 at 03:59 AM

Rename the button text based on condition

452 Views

Hi,

I have added a create button in the form once data is saved.. i need to rename the button to "update button" i have used this jquery in ajax success callback

$(".changeText").find("span").eq(1).text("Update Challenge");

but its doesnt seems to work along wid code..but in console its working.. i think DOM is nt getting refreshed. anyother way of implementation u people can suggest?