cordova Posted March 3 Report Share Posted March 3 Hi, Is it possible to highlight the entire field including the label with maybe a different background when that field's text box is selected? Quote Link to comment Share on other sites More sharing options...
0 futurist Posted March 3 Report Share Posted March 3 Hi @cordova You can do this using JavaScript. On your Submission DP, paste the following on the Footer: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> $("input[type='text']").focus(function(){ var parent = $(this).parent() parent.css('background-color','#96d0ff'); parent.prev().css('background-color','#96d0ff'); }) $("input").focusout(function(){ var parent = $(this).parent() parent.css('background-color','transparent'); parent.prev().css('background-color','transparent'); }) </script> You may also see the sample DataPage: https://c1hch576.caspio.com/dp/db26a000e7eeca108e414d0691d0 Quote Link to comment Share on other sites More sharing options...
Question
cordova
Hi,
Is it possible to highlight the entire field including the label with maybe a different background when that field's text box is selected?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.