Jump to content
  • 0

Highlight the entire field including the label when text field is selected


cordova
 Share

Question

1 answer to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...