kala-tamin How to disable the OK button of a modal dialog in jQuery


How to disable the OK button of a modal dialog in jQuery



I want to disable the OK button of a modal dialog after pressing OK button in jQuery.




Problem with expression language functions in Tomahawk tags

1:



Best JSF framework/library for “conversation state”
Write the disable action in your Ok button click event as following.
JSF, Exception Logging using a aopalliance MethodInterceptor
"Ok": {                                  click: function () {           $(".ui-dialog-buttonpane button:contains('Ok')")                           .attr("disabled", true)                           .addClass("ui-state-disabled");                         }       } 
Above code will get all the buttons in your dialog and select the Ok button and adding attribute disable only to that button..
Binding attribute causes duplicate component ID found in the view


Richfaces tooltip componentcontrol param


RichFaces and Facelets, a good combo?

2:



struts2, code completion in jsp
"Ok": {     click: function (e) {         $(e.target)             .attr("disabled","disabled")             .addClass("ui-state-disabled");         return false;     } } 
or if its localized:.
JSF works only with the .xhtml ending
buttons = {}; buttons[strings.buttons.ok] = function(e){     $(e.target)         .attr("disabled","disabled")         .addClass("ui-state-disabled");     return false; } 



83 out of 100 based on 83 user ratings 233 reviews