Hey gang,
I’m noticing a reluctance to post because I feel like it’s a simple question and that asking this question will out me as a novice. So, that’s where I’m coming from with this question.
So here’s my question:
When you are focused on a large text area, I want a responsive grid to render. How can I get a snippet to evaluate to true when the focus is on that field?
Here’s my snippet attempt:
var params = arguments 0], $ = skuid.$;<br>var sFocus;<br>if ($("#subjectiveField").is(":focus")){<br> sFocus = true;<br>}<br> console.log('check result ' + sFocus);<br> return sFocus;
Notes:
- snippet name is subjectiveSnippet
- focus field has a CSS class of subjectiveField