Welcome Guest, Not a member yet? Register   Sign In
enable / disable button based on record inserted
#5

Quote:yes i am using a ajax in a pop up window.

Make sure the buttons are disabled by default.
In the success part of your AJAX routine, enable the buttons. If you give both buttons the same css class, you can enable them in jQuery by removing the disabled property:
Code:
$('.image-action').prop('disabled', false);  //this will enable all elements with the "image-action" class.
Reply


Messages In This Thread
RE: enable / disable button based on record inserted - by Wouter60 - 09-19-2018, 07:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB