1
I have the code js
$size = 50;
and I want to click on that button
<label for="post-1" class="read-more-trigger" onclick="$size = 500"></label>
it changes the value to 500. My only difficulty is to make the button click again and the value goes back to the initial "50". I think it is possible to do this with some if’s and E-s but I am very lay in js and I need it.
Quan is the HTLM of
#post-1
? the element hasvalue="50"
?– Sergio
No, that’s a see-more button. What happened was that when opening the contents of this button the smooth scroll did not go to the right place since the page size was changed.
– Daniel Heringer