What Will I Learn?
I will learn how to create a terms to use page just an example to control two divs as two pages in the same page .
- How to create the items and div with some CSS proprieties .
- How to check if the button that you clicked equals to the class .
- How to modify the opacity CSS propriety and use the show and hide functions .
Requirements
- Basic knowledge of JavaScript language .
- Knowledge of JQuery .
- Has the min jquery file .
- Has an editor text .
Difficulty
- Basic
Description
- In this video I will show you how to create a terms to use page example when I click on the button ' licence ' the page will appear how to do it ?
- Firstly I added two divs in my HTML file , the first div is the first page it has a heading and paragraph and two buttons , the first button is ' licence ' when we click on it the second page ( div ) will appear and cancel to close it .
- I added to it some proprieties ( width , height , padding , margin ..etc ) to be the first and the second page , also I used a ' display : none ' propriety for the second div to hide it .
- I got the button in a variable called ' btn ' and I check if we click on the button the function will test if you clicked on ' licence ' the div with class ' .myLicence ' will appear by this function ' show() ' and the opacity of my current div will be 0.1 .
- In the second function I test if it ' cancel-b ' of licence page will hide the page and return the opacity to 1.
- In the third function to cancel our current page just I take the class and hide the page in 600 millisecondes .
Video Tutorial
Curriculum
- JQuery How To Show And Hide Password To Confirm It ' Convert Type ' ( Video Tutorial )
- JQuery Create a Scroll to Top Button Based by The Scroll Function ( Video Tutorial )
Posted on Utopian.io - Rewarding Open Source Contributors

.
Thank you sir
Your contribution cannot be approved because it does not follow the Utopian Rules.
.show()and.hide()functions of jQuery. And please consider that, only showing 2 simple functions and their usage in a tutorial is not a proper tutorial format since it's open to abuse.Change of decision:
You can contact us on Discord.
[utopian-moderator]