How can I show a field on click? In node.html.twig, I want to show a field when I click on it, as what the Field Value Loader (Show field on click) module does, but this module doesn't have releases for Drupal 8.

How can I do this?
node.html.twig

&lt;div class = "field-something"&gt;
{{ content.field_something.value }}
&lt;/div&gt;

&lt;div class = "show"&gt;
Show
&lt;/div&gt;


custom.js

(function ($) {

$('.field-something').hide();
$('.show').show();

$('.show').click(function(){
    $('.field-something').fadeIn(2000);
    $('.show').hide();
});

}(jQuery));


Your Theme's style.css

.field-something { float: left; padding-right: 5px; }
.show { color: blue; cursor: pointer; display: none; }


Example DEMO