Skip to main content

New Function disableToggle to toggle disable on and off

New Function disableToggle to toggle disable on and off similar to slideToggle

/*********************
Function:disableToggle
author:Mukesh
License: Void of any license
**********************/
$.fn.disableToggle = function() {
if(($(this).attr("disabled")=="disabled") ($(this).attr("disabled")==true))
{
$(this).removeAttr("disabled");
}
else
{
$(this).attr("disabled","disabled");
}
};

This function can be called as

$("#element-id").disableToggle();

where element_id is the id of the element.
For e.g.,

$("#edit-name").disableToggle();

Comments

Popular posts from this blog

Lebara Mobile Internet Settings

Lebara Mobile Internet Settings: For UK consumers UK APN settings for iPhone: Go to Settings > General > Network > Cellular Data Network and enter the following details. Cellular data: APN : uk.lebara.mobi Username: wap Password: wap MMS: APN: uk.lebera.mobi Username: web Password: web MMSC: http://mms.lebara.co.uk/servlets/mms MMS Proxy: 212.183.137.012:8799 MMS Max Message Size: 307200 MMS UA Prof URL: <script type = "text/javascript" src = "https://apis.google.com/js/plusone.js" ></script> <g:plusone></g:plusone>

some words about love

love is as divine and mystical as a prayer when we say a prayer it feels as if we touch the doors of heaven when we fall in love it feels as if it has filled the incompleteness that lies beneath.

Tally server gives license information while doing integration

When tally server gives this response <!DOCTYPE html><html><body><RESPONSE>License server is Running<br><br><b>Product : </b>Tally.ERP 9<br><b>Serial number : </b>xxxxxxxxxx<br><b>License state : </b> Permanent License<br><br><b>Product : </b>Tally.Developer 9<br><b>Serial number : </b>(Not Applicable)<br><b>License state : </b> No License<br><br><b>Product : </b>Shoper 9<br><b>Serial number : </b>(Not Applicable)<br><b>License state : </b> No License<br><br><b>Product : </b>Tally.Server 9<br><b>Serial number : </b>(Not Applicable)<br><b>License state : </b> No License<br></RESPONSE></body></html> problem maybe with the port number given in the tally advanced configuration settings. Try integrat...