Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bootstrap input change color
#3
>>Is it possible to programmaticaly change color of label/input in bootstrap?

Yes.  Here's how I do it (in async events):

Code:
WebApplication->CallBackResponse->AddJavaScriptToExecuteAsCDATA("$('#LBLSTATS').removeClass('text-info');$('#LBLSTATS').addClass('text-danger');");

Another way:

Code:
WebApplication->CallBackResponse->AddJavaScriptToExecuteAsCDATA("$('#EDNAME').css('background-color', 'red');");


Regards,
Mark
Reply


Messages In This Thread
Bootstrap input change color - by bostjan - 06-02-2020, 08:43 PM
RE: Bootstrap input change color - by bostjan - 06-08-2020, 10:20 AM
RE: Bootstrap input change color - by MJS@mjs.us - 06-08-2020, 01:13 PM
RE: Bootstrap input change color - by bostjan - 06-09-2020, 11:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)