show hide more text jquery
<span id="text">Extra Text</span>
<span id="more">show more...</span>
<span id="less">show less...</span>
<script>
$("#text").hide();
$("#less").hide();
$("#more").click( function() {
$("#text").show();
$("#less").show();
$("#more").hide();
});
$("#less").click( function() {
$("#text").hide();
$("#less").hide();
$("#more").show();
});
</script>
Also in JavaScript:
- creating js objects
- jquery async await $.getScript(
- how to make your own drop down react native
- grep first 2 character from string in javascript
- js if dark mode
- react responsive video player
- jquery add attribute without value
- axios api post request
- ./src/index.js Line 0: Parsing error: Cannot find module '@babel/helper-validator-identifier'
- js join two arrays
- query string from object js
- execute terminal command nodejs
- modern javascript for loop syntax
- express payloadtoolarge request entity too large bodyParser raw-body hydra-express
- create function javascript
- add one file to another in ejs
- express js list all routes
- javascript remove first item from array
- js array last element
- date range filter in lodash for multiple day
- reactstrap search bar
- prime factorization javascript
- what is ajax
- multiple case switch javascript