i need to change button text from 'disable' to 'enable' or vice verse onclick depending on flag value in database which is 'on' or 'off'
i have tried to many ways using javascript
and jquery
but the Application methodology doesn't work with this , so i have found that the Ajax
may bay the suitable way So any suggestion ?