Click here to Skip to main content
15,896,329 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionText to Image Font Size Pin
Member 1374210822-Mar-18 17:51
Member 1374210822-Mar-18 17:51 
AnswerRe: Text to Image Font Size Pin
Richard Deeming23-Mar-18 2:46
mveRichard Deeming23-Mar-18 2:46 
QuestionHow to fetch unchecked checkbox value Pin
Member 1372997516-Mar-18 1:25
Member 1372997516-Mar-18 1:25 
AnswerRe: How to fetch unchecked checkbox value Pin
Richard Deeming16-Mar-18 2:50
mveRichard Deeming16-Mar-18 2:50 
AnswerRe: How to fetch unchecked checkbox value Pin
F-ES Sitecore22-Mar-18 6:58
professionalF-ES Sitecore22-Mar-18 6:58 
PraiseRe: How to fetch unchecked checkbox value Pin
Richard Deeming22-Mar-18 9:14
mveRichard Deeming22-Mar-18 9:14 
GeneralRe: How to fetch unchecked checkbox value Pin
F-ES Sitecore22-Mar-18 23:15
professionalF-ES Sitecore22-Mar-18 23:15 
QuestiontoggleClass and hasClass Pin
VK1915-Mar-18 4:31
VK1915-Mar-18 4:31 
Hello All,
 Using toggleClass and hasClass in javascript to toggle between 'SelectAll' and 'DeselectAll', to control the checkboxes. 'SelectAll' would check all the checkboxes, and 'DeselectAll' would deselect them all at once. This works fine in my development environment, but in staging server, the button does not invoke any action. It does nothing.

 How does one go about debugging another environment, which does not have VS installed? 

 I have pasted a snippet - thank you!

Hide   Copy Code
script type="text/javascript">
        $(function () {
            $("#SelectAll").click(function () {
                var $this = $(this);
                $this.toggleClass('SelectAll');
                if ($this.hasClass('SelectAll')) {
                    $this.text('DeselectAll');
                    $this.val('DeselectAll');

                    var ischecked = true;
                } else {
                    $this.text('SelectAll');
                    $this.val('SelectAll');
                    var ischecked = false;
                }
            });
        });
        </script>

AnswerRe: toggleClass and hasClass Pin
Richard Deeming15-Mar-18 6:35
mveRichard Deeming15-Mar-18 6:35 
GeneralRe: toggleClass and hasClass Pin
VK1915-Mar-18 7:56
VK1915-Mar-18 7:56 
GeneralRe: toggleClass and hasClass Pin
Richard Deeming15-Mar-18 8:03
mveRichard Deeming15-Mar-18 8:03 
GeneralRe: toggleClass and hasClass Pin
VK1915-Mar-18 8:42
VK1915-Mar-18 8:42 
GeneralRe: toggleClass and hasClass Pin
Richard Deeming15-Mar-18 8:45
mveRichard Deeming15-Mar-18 8:45 
GeneralRe: toggleClass and hasClass Pin
ZurdoDev15-Mar-18 10:25
professionalZurdoDev15-Mar-18 10:25 
QuestionNo JavaScript! Pin
Member 137103915-Mar-18 13:17
Member 137103915-Mar-18 13:17 
AnswerRe: No JavaScript! Pin
Richard MacCutchan5-Mar-18 21:44
mveRichard MacCutchan5-Mar-18 21:44 
GeneralRe: No JavaScript! Pin
Nitin S28-Jun-18 1:23
professionalNitin S28-Jun-18 1:23 
QuestionWhat does ".then" mean in JavaScript? Pin
Xarzu22-Feb-18 14:27
Xarzu22-Feb-18 14:27 
AnswerRe: What does ".then" mean in JavaScript? Pin
Richard MacCutchan22-Feb-18 22:09
mveRichard MacCutchan22-Feb-18 22:09 
AnswerRe: What does ".then" mean in JavaScript? Pin
Richard Deeming23-Feb-18 0:58
mveRichard Deeming23-Feb-18 0:58 
QuestionHow do I make a pop-up window in JavaScript? Pin
Xarzu21-Feb-18 12:34
Xarzu21-Feb-18 12:34 
AnswerRe: How do I make a pop-up window in JavaScript? Pin
Peter_in_278021-Feb-18 17:16
professionalPeter_in_278021-Feb-18 17:16 
AnswerRe: How do I make a pop-up window in JavaScript? Pin
Richard Deeming22-Feb-18 0:40
mveRichard Deeming22-Feb-18 0:40 
Questionhow to add col dynamically using js and html Pin
Member 1368695921-Feb-18 1:03
Member 1368695921-Feb-18 1:03 
AnswerRe: how to add col dynamically using js and html Pin
Richard MacCutchan21-Feb-18 2:03
mveRichard MacCutchan21-Feb-18 2:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.