Click here to Skip to main content
15,039,214 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionRe: How can I minimize the entire browser? Pin
SeeSharp219-Jul-21 9:46
MemberSeeSharp219-Jul-21 9:46 
AnswerMessage Closed Pin
30-Aug-21 22:16
MemberSyed2655730-Aug-21 22:16 
QuestionWant to achieve web page timing become focus execution Pin
Member 1528061310-Jul-21 13:09
MemberMember 1528061310-Jul-21 13:09 
Rant[REPOST] Want to achieve web page timing become focus execution Pin
Richard Deeming11-Jul-21 22:08
mveRichard Deeming11-Jul-21 22:08 
QuestionWant to achieve web page timing become focus execution Pin
Member 152806137-Jul-21 15:20
MemberMember 152806137-Jul-21 15:20 
QuestionHow do I get my input box to persist after clicking Amend? (SOLVED) Pin
samflex3-Jul-21 6:15
Membersamflex3-Jul-21 6:15 
AnswerRe: How do I get my input box to persist after clicking Amend? Pin
Richard Deeming4-Jul-21 21:41
mveRichard Deeming4-Jul-21 21:41 
GeneralRe: How do I get my input box to persist after clicking Amend? Pin
samflex5-Jul-21 2:41
Membersamflex5-Jul-21 2:41 
Hello Richard,

Thank you very much sir for your awesome response.

Just one follow up question.

So your solution and my JS would work together as shown below?

$(function(){
    const displayShortCosts = function(){
        $(".consultsup").show();
        $("#btconsultsup").hide();
    });
    
    if ($("#shortCosts").val()) {
        displayShortCosts();
    }
    else {
        $("#btconsultsup").click(displayShortCosts);
    }
});

 $("#btconsultsup").click(function () {
      if ($(this).val().toLowerCase() == "amend") {
	  $.each($('.consultsup'), function(i, item){
	  $(this).show();
	});
	$(this).val("Cancel");
    } else {
	  $.each($('.consultsup'), function(i, item){
	  $(this).hide();
	});
	$(this).val("Amend");
    }
  });

GeneralRe: How do I get my input box to persist after clicking Amend? Pin
Richard Deeming5-Jul-21 2:47
mveRichard Deeming5-Jul-21 2:47 
GeneralRe: How do I get my input box to persist after clicking Amend? Pin
samflex5-Jul-21 3:24
Membersamflex5-Jul-21 3:24 
GeneralRe: How do I get my input box to persist after clicking Amend? Pin
Richard Deeming5-Jul-21 3:39
mveRichard Deeming5-Jul-21 3:39 
GeneralRe: How do I get my input box to persist after clicking Amend? Pin
samflex5-Jul-21 3:49
Membersamflex5-Jul-21 3:49 
Questionjs problem Pin
tkshitiz30-Jun-21 22:13
Membertkshitiz30-Jun-21 22:13 
AnswerRe: js problem Pin
Richard MacCutchan30-Jun-21 22:15
mveRichard MacCutchan30-Jun-21 22:15 
QuestionA button at html to trigger an autoplay audio at exact time Pin
Member 1526543827-Jun-21 23:42
MemberMember 1526543827-Jun-21 23:42 
QuestionRe: A button at html to trigger an autoplay audio at exact time Pin
Richard MacCutchan28-Jun-21 0:06
mveRichard MacCutchan28-Jun-21 0:06 
AnswerRe: A button at html to trigger an autoplay audio at exact time Pin
Member 1526543828-Jun-21 0:11
MemberMember 1526543828-Jun-21 0:11 
GeneralRe: A button at html to trigger an autoplay audio at exact time Pin
Richard MacCutchan28-Jun-21 0:24
mveRichard MacCutchan28-Jun-21 0:24 
AnswerRe: A button at html to trigger an autoplay audio at exact time Pin
Richard Deeming28-Jun-21 4:06
mveRichard Deeming28-Jun-21 4:06 
GeneralRe: A button at html to trigger an autoplay audio at exact time Pin
Member 1526543828-Jun-21 22:11
MemberMember 1526543828-Jun-21 22:11 
GeneralRe: A button at html to trigger an autoplay audio at exact time Pin
Richard Deeming28-Jun-21 22:25
mveRichard Deeming28-Jun-21 22:25 
QuestionMessage Closed Pin
20-Jun-21 1:16
MemberMember 1525486220-Jun-21 1:16 
QuestionHow to merge to javascripts to test in console? Pin
ajaszin18-Jun-21 14:52
Memberajaszin18-Jun-21 14:52 
AnswerRe: How to merge to javascripts to test in console? Pin
Richard Deeming20-Jun-21 23:45
mveRichard Deeming20-Jun-21 23:45 
GeneralRe: How to merge to javascripts to test in console? Pin
DerekT-P21-Jun-21 9:22
professionalDerekT-P21-Jun-21 9:22 

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.