Click here to Skip to main content
15,436,275 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: How can I minimize the entire browser? Pin
Richard Deeming11-Jul-21 22:10
mveRichard Deeming11-Jul-21 22:10 
GeneralRe: How can I minimize the entire browser? Pin
Peter_in_278011-Jul-21 22:19
professionalPeter_in_278011-Jul-21 22:19 
QuestionRe: How can I minimize the entire browser? Pin
SeeSharp219-Jul-21 9:46
MemberSeeSharp219-Jul-21 9:46 
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 
Assuming your server-side code outputs the stored value from the database in the textbox, then you simply need to test on page load whether the textbox is empty, and display it if it has a value.
JavaScript
$(function(){
    const displayShortCosts = function(){
        $(".consultsup").show();
        $("#btconsultsup").hide();
    });
    
    if ($("#amendconSupportContractCosts").val()) {
        displayShortCosts();
    }
    else {
        $("#btconsultsup").click(displayShortCosts);
    }
});




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


modified 5-Jul-21 9:39am.

GeneralRe: How do I get my input box to persist after clicking Amend? Pin
samflex5-Jul-21 2:41
Membersamflex5-Jul-21 2:41 
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 
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.