Results 1 to 1 of 1

Thread: Applying CSS dynamically in Web app using Javascript

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185

    Applying CSS dynamically in Web app using Javascript

    This code:

    $("#btnaccept").css("bordercolor","purple");

    issued in the Click delegate of a commandbutton, btnaccept, in a Canvas section in theory should set the border color to purple, using JSQuery syntax.

    It doesn't error, but neither does it do anything.

    I must be missing something...

    I know i could just set bordercolor (that works, of course), but what I really want is a boxshadow.

    $("#btnaccept").css("boxShadow","inset 1em");

    The line is running (Chrome inspector, breakpoint), no error thrown, no change in the color (for the first) or boxshadow (for the second).

    thanks,

    Hank
    Last edited by HankFay; 2018-01-05 at 22:33.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us