Downloading jQuery UI CSS from Google’s CDN

The Google AJAX Libraries API, which includes jQuery UI (currently v1.10.3), also includes popular themes as per the jQuery UI blog: Google Ajax Libraries API (CDN) Uncompressed: http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.js Compressed: http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js Themes Uncompressed: black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, hot-sneaks, humanity, le-frog, mint-choc, overcast,pepper-grinder, redmond, smoothness, south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, and … Read more

How to use radio on change event?

You can use this which refers to the current input element. $(‘input[type=radio][name=bedStatus]’).change(function() { if (this.value == ‘allot’) { // … } else if (this.value == ‘transfer’) { // … } }); http://jsfiddle.net/4gZAT/ Note that you are comparing the value against allot in both if statements and :radio selector is deprecated. In case that you are … Read more

How to change the text of a button in jQuery?

Depends on what type of button you are using <input type=”button” value=”Add” id=’btnAddProfile’> $(“#btnAddProfile”).attr(‘value’, ‘Save’); //versions older than 1.6 <input type=”button” value=”Add” id=’btnAddProfile’> $(“#btnAddProfile”).prop(‘value’, ‘Save’); //versions newer than 1.6 <!– Different button types–> <button id=’btnAddProfile’ type=”button”>Add</button> $(“#btnAddProfile”).html(‘Save’); Your button could also be a link. You’ll need to post some HTML for a more specific answer. … Read more

check / uncheck checkbox using jquery? [duplicate]

For jQuery 1.6+ : .attr() is deprecated for properties; use the new .prop() function instead as: $(‘#myCheckbox’).prop(‘checked’, true); // Checks it $(‘#myCheckbox’).prop(‘checked’, false); // Unchecks it For jQuery < 1.6: To check/uncheck a checkbox, use the attribute checked and alter that. With jQuery you can do: $(‘#myCheckbox’).attr(‘checked’, true); // Checks it $(‘#myCheckbox’).attr(‘checked’, false); // Unchecks … Read more

How to remove close button on the jQuery UI dialog?

I have found this worked in the end (note the third line overriding the open function which find the button and hides it): $(“#div2”).dialog({ closeOnEscape: false, open: function(event, ui) { $(“.ui-dialog-titlebar-close”, ui.dialog || ui).hide(); } }); To hide the close button on all dialogs you can use the following CSS too: .ui-dialog-titlebar-close { visibility: hidden; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)