Register and Get ₹100- Quick CLICK HERE!

HomeCodding

Questions By
Monjoti Mondol
OFFER ₹0

jquery detect scroll to bottom of page and display the div else hide


Hello everyone, I want code in jquery or javascript which is detect scroll to bottom of page and display the div and hide the div if scroll reach to top. 
I mean the button that display when we scroll down at the bottom of the page but it display none when it reach the top of the page. 
I hop you had understood what I was trying to say, so thank you in advanced for answering.
 
06-04-2018, Total 2 Ans Best Answered , 203 views


BEST ANSWER
Ok friends finally I got the solution of my own ..  
And here is the code for jquery detect scroll to bottom of page. 
 Firstly let this be your go up button ..
<a id="scrollbtn" style="display:none;" href="#top">
	Go up
</a>
 And this be your jquery code for detecting and going up of the page when clicked..
 
$(window).scroll(function() {
   if($(window).scrollTop() + $(window).height() > $(document).height() - 500) {
       document.getElementById("scrollbtn").style.display = "block";
   }else{
        document.getElementById("scrollbtn").style.display = "none";
   }
});
 
 Friends this is jquery code so never forget to attach the jquery cdn inside your head tag.. or else it may not work .. 
 Thanks hop it helps someone else ..
 
Monjoti Mondol
06-04-2018

OTHER ANSWERS

Here is also some solution were solved like this, if you see this solution you may find what you are looking for , click here https://stackoverflow.com/questions/2768264/how-to-show-div-when-user-reach-bottom-of-the-page 
 

Monjoti Mondol
06-04-2018

Please LOGIN to Answer

OTHER CATEGORIES

Politics/Govt

Total: 8

Music/Movies

Total: 2

News

Total: 1

Sports/Games

Total: 8

Educations

Total: 2

Codding

Total: 97

Science/Tech

Total: 9

Softwares

Total: 20

Hardwares

Total: 2

Websites

Total: 29

SEO

Total: 10

Foods

Total: 2

Health/Fitness

Total: 0

Business/Earnings

Total: 17

Jobs

Total: 2

Cars/Vehicals

Total: 0

Travels

Total: 0

Beauty/Fashions

Total: 0

Lifestyles

Total: 5

Gods/Religious

Total: 5

Others

Total: 4

Events

Total: 0

Recently Asked Questions

How to get the secure file or signed files from the aws s3 bucket using cloudfront PHP?
Ans(1) ₹0

How to upload files using AWS s3 SDK PHP?
Ans(1) ₹0

How to find if the file exist or not in the AWS s3 Buckets?
Ans(1) ₹0

How to play .m3u8 files in the website?
Ans(1) ₹0

How to do JavasScript PHP Long Poll for real time load data?
Ans(0) ₹0

My site didn\'t stpopped loading, and there is no error showing, what is going on?
Ans(2) ₹0

Which is the best Operating System(OS) for hosting a website?
Ans(1) ₹0

Why Aliens doesn\'t comes in front of us if they were roaming earth surface?
Ans(0) ₹0

Warning: DOMDocument::save(folde/file.xml): failed to open stream: Permission denied.. PHP error AWS centos
Ans(1) ₹0

Warning: DOMDocument::createElement(): unterminated entity reference .. How to solve it?
Ans(1) ₹0


+Start Earning


Related Ques

Warning: DOMDocument::createElement(): unterminated entity reference .. How to solve it?
Ans(1) ₹0

Warning: DOMDocument::createElement(): unterminated entity reference. How to solve it?
Ans(2) ₹0

Warning: require(/vendor/autoload.php): failed to open stream: Permission denied in /var/www/ .. need solution.
Ans(1) ₹0

Notice: Undefined index: redirecturl in .. PHP error, how to solve it?
Ans(2) ₹0

Error: Disconnected: No supported authentication methods available .. AWS ec2 Filezilla
Ans(1) ₹0

Warning: DOMDocument::save(folde/file.xml): failed to open stream: Permission denied.. PHP error AWS centos
Ans(1) ₹0

Notice: Undefined offset: 1 in .., PHP error, why this is occurring in my website?
Ans(1) ₹0

SyntaxError: expected expression, got \'<\' .. How to solve it?
Ans(1) ₹0

json not working on xampp, I used javascript and php + Json
Ans(2) ₹0

Reduce server response times (TTFB), How to solve this issue
Ans(0) ₹0

Eliminate render-blocking resources on Google page speed, how to solve this issue?
Ans(0) ₹0

Google Analytics vs Google Adsense, Page views report is not same, how to solve it?
Ans(3) ₹0

Very less views but too many clicks, like 100 page views but 20 clicks, is it fair?
Ans(2) ₹0

Warning: Header may not contain more than a single header, new line detected
Ans(2) ₹0

Error: Field \'table\' doesn\'t have a default value, mysqli why it is happening?
Ans(2) ₹0

We apologize for the inconvenience, but we are unable to process your request at this time. Our engineers have been notified of this problem and will work to resolve it.
Ans(0) ₹0

Error: Secure Connection Failed, while visiting a website.
Ans(1) ₹0

Google Analytics page views is grater than Google Adsense page views, what\'s the reason?
Ans(0) ₹0

I was trying to embed my upload s3 image files on my website but it shows blank, how to solve it?
Ans(1) ₹0

XAMPP: phpmyadmin password not working, what is happening?
Ans(1) ₹0

Ubuntu - Permission denied - while openeing a folder, how to solve it?
Ans(2) ₹0

putty fatal error - Remote side unexpectedly closed network connection
Ans(0) ₹0

My website page doesn\'t stop loading, how to solve it?
Ans(1) ₹0

Warning: Creating default object from empty value, Error on PHP JSON
Ans(2) ₹0

Error on my Firefox Inspect Element - Console, what this mean?
Ans(2) ₹0

Why there is limitation is asking questions on Mritunjoy Forum?
Ans(0) ₹0

I see the symbol ! and & is making disturb in creating my own WYSIWYG, how to solve it?
Ans(5) ₹0

What is yii framework and where I can find it?
Ans(0) ₹0

Real time data insert and retrieve using Javascript and PHP.
Ans(0) ₹0

Amazon SNS is very difficult to register, I didn\'t even understand how to use it?
Ans(2) ₹0

What is laravel and what does it do? Why it is important for web developers?
Ans(0) ₹0

What is php mailer and how to use it?
Ans(0) ₹0

How to create registration form in PHP?
Ans(0) ₹0

I got this image about SEO improvement strategies, so can anyone explain to me about it?
Ans(2) ₹0

How to install PHP?
Ans(0) ₹0

Event blogging might be the best option for earning, but is it really a good idea?
Ans(0) ₹0

Adsense Earning: Page views is greater than Impression, how it happens and any problem?
Ans(3) ₹0

How to save our website from DMCA? Should we afraid of it?
Ans(2) ₹0

How is the PUBG game so much popular? Is it interesting to play?
Ans(0) ₹0

How to open a file using Ubuntu Terminal?
Ans(2) ₹0

Should I use Premium Account on Mritunjoy Forum? What is the benefit of using it?
Ans(0) ₹0

How to delete the terminated intences in AWS Amazon?
Ans(2) ₹0

What is the top fashion for boys in 2019? For North East Indians.
Ans(0) ₹0

When to use Sql and when to use NoSql? Can we use both type of Databases and how to use it?
Ans(0) ₹0

What is XAMPP and where it is used for?
Ans(0) ₹0

Is there any software like PHP online editor? If there is then tell me.
Ans(0) ₹0

create own cdn like jquery cdn link, bootstrap cdn link,etc.
Ans(1) ₹0

FTP Error: Received unexpected end-of-file from SFTP server, what is the meaning of it?
Ans(1) ₹0

How to play .m3u8 files in the website?
Ans(1) ₹0

How to upload files using AWS s3 SDK PHP?
Ans(1) ₹0

php count variable values separated with comma
Ans(2) ₹0

Why the numbers of UFO sighting is increasing as the time is passing by?
Ans(0) ₹0

How to php send mail? how to send eamils using php from our websites?
Ans(0) ₹0

I need to create free static website, is there any way to create it?
Ans(1) ₹0

Does AWS has their own official team to support their customers, because it seems very difficult to use it?
Ans(1) ₹0

Cassandra vs MongoDB which is the best and when to use it?
Ans(2) ₹0

proc-open() fork failed - cannot allocate memory. Aws error while installing composer
Ans(1) ₹0

how to check if there is element with the id name using javascript?
Ans(3) ₹0

Can I use both Adsense ads and admob ads on a single Android App?
Ans(1) ₹0

How to check how much MB or KB is my website consuming while ajax requesting using Browser?
Ans(6) ₹0

Ranking in different keywords that I never thought on search engines.
Ans(0) ₹0

Can we migrate all the SQL data into MongoDB database?
Ans(0) ₹0

How much Amazon Cloud Hosting charges?
Ans(1) ₹0

How to get Amazon Aws Account for free and use it for free?
Ans(2) ₹0

auto audio play html not working on mobile, using Javascript
Ans(3) ₹0

How to create form with post method using fetch, JavaScript?
Ans(1) ₹0

How to clear all bugs from my website? I think my website got lots of bugs.
Ans(0) ₹0

What is PHP and what is PHP full form?
Ans(0) ₹0

How to find if the file exist or not in the AWS s3 Buckets?
Ans(1) ₹0

How to display all Errors in PHP?
Ans(1) ₹0

How to upload images using php on AWS s3 Buckets?
Ans(1) ₹0

WWE is just a scripted and acting show, is it true and why people is watching it still?
Ans(0) ₹0

Why Aliens doesn\'t comes in front of us if they were roaming earth surface?
Ans(0) ₹0

My site didn\'t stpopped loading, and there is no error showing, what is going on?
Ans(2) ₹0

How to do JavasScript PHP Long Poll for real time load data?
Ans(0) ₹0

How to get the secure file or signed files from the aws s3 bucket using cloudfront PHP?
Ans(1) ₹0

Where to find TN TRB(Tamil Nadu Teachers Recruitment Board) Admit Card 2019?
Ans(0) ₹0

As Global warming arises, can Human being will be able to repair all those destroyed nature again?
Ans(1) ₹0

Why not functions set inside iFrame body not working?
Ans(0) ₹0

Do Aliens really exists?
Ans(3) ₹0

Oh! nice way to earn money for Idiot Gurus Like Shad Guru or what? Earn money by taking name of kaveri river.
Ans(2) ₹0

How to get FTP details on Amazon AWS for my EC2 hosting?
Ans(0) ₹0

Which is the best website to learn MongoDB online?
Ans(3) ₹0

Should we trust such Shadus like Shad Guru to make donation for Kaveri river?
Ans(3) ₹0

How is the AWS support plans, is it good or bad, as I see it is not free?
Ans(1) ₹0

How to create a Scroll bar that always stay at the bottom? HTML,Javascript
Ans(3) ₹0

How many countries Twilio can send SMS?
Ans(2) ₹0

How to write ourl url for SEO on href attribute
Ans(2) ₹0

How to set Starting date and expire date using PHP?
Ans(0) ₹0

How to replace all the similar letters on a words with javascript
Ans(0) ₹0

How to get the copied content inside iFrame
Ans(0) ₹0

How to show codes on html page, I want to suggest codes for my viewers
Ans(0) ₹0

How to Propose Girls in this 2019?
Ans(2) ₹0

How to replace the KeyCode or typing key whenever I type inside iFrame, Javascript
Ans(0) ₹0

How to run addEventListener inside iFrame, using Javscript
Ans(0) ₹0

How to get the body tag inside iFrame, using Javascript
Ans(0) ₹0

I need lists of all the exeCommand() and how to use it, Javascript
Ans(0) ₹0

How to remove all the codes and show only strings using PHP
Ans(3) ₹0

How to get the present full url using PHP
Ans(2) ₹0

PHP get url last string - How to get last part string of the url using php
Ans(2) ₹0

Free Solar Panel Apply - whatsApp message, fake or true
Ans(2) ₹0

cannot modify header information - headers already sent
Ans(2) ₹0

Develop physical health in village area
Ans(1) ₹0

Create social share buttons for facebook,twitter,google plus,etc.
Ans(2) ₹0

Eight words php search engine script for mysqli database
Ans(2) ₹0

Word break inside XMP element not working, what to do?
Ans(3) ₹0

How to get the url of page from where we had just now redirected with PHP?
Ans(1) ₹0

How to get the value of php variable and use it on Javascript
Ans(3) ₹0

How to maintain times as a blogger, to become perfect blogger?
Ans(2) ₹0

How much Humanoid robots is developed till today? I need lists
Ans(1) ₹0

error timezone php or set time php timezone
Ans(1) ₹0

Does the hosting providers really gives unlimited hosting plans?
Ans(1) ₹0

How to use perfect Javscript Fetch Api, for one website to another website data transfer?
Ans(2) ₹0

free software website vs website from scratch using html
Ans(1) ₹0

How to transfer data from one website to another?
Ans(2) ₹0

How to check the errors of PHP? Is there any software or codes that will help me in finding errors?
Ans(2) ₹0

How to get the ID of elements inside iFrame, JavaScript
Ans(0) ₹0

How to get the domain name of from where the request is coming using PHP?
Ans(3) ₹0

Rss Feed XML errors : item should contain a guid element - Solve it
Ans(1) ₹0

Create huge content for my website for Ranking and traffics Purposes, does it will work?
Ans(0) ₹0

How to work as a team on a single website? What were the works that my partner will do on my website?
Ans(0) ₹0

Google keyword planner is not for free but how to get it for free, any ideas?
Ans(2) ₹0

How to write evergreen blogs and what were the evergreen niche for Blogging and YouTubes?
Ans(0) ₹0

How to watch xvideos site in India? How to watch banned websites in India and world?
Ans(1) ₹0

Some website\'s pages have very less content but still, they were ranking on search engine how?
Ans(0) ₹0

Bro! I think it is impossible to close all the loops to make hacking protected.
Ans(2) ₹0

Why to choice online business, is it more better than jobs?
Ans(0) ₹0

How to always stay happy and successful life?
Ans(0) ₹0

Does Dropshipping still works and how I earn with it?
Ans(0) ₹0

How to do IBPS clerk registration 2019?
Ans(0) ₹0

Who was Vishnuvardhan? And why he is so much popular?
Ans(0) ₹0

Why this Facebook not trying to stop those adults photos and videos? It feels shame to use Facebook in front of family?
Ans(0) ₹0

How to find if someone is ajax requesting on my site and how to get clients url?
Ans(4) ₹0

How to post the link in perfect way for increasing backlinks and traffics for my website?
Ans(3) ₹0

How to track my own computer on Google Analytics so that I know my own views on my site?
Ans(3) ₹0

Getting the last string of the url after slash javascript
Ans(3) ₹0

How to get the values from url using Javascript, I mean from GET values from url
Ans(3) ₹0

How is the Realme XT phone new launched in India? Should I buy it?
Ans(6) ₹0

How was the Gang Leader Movie\'s Story and Roles, who were the actors?
Ans(3) ₹0

How to create rss.xml file using PHP?
Ans(1) ₹0

Can we change our server software? For example from Ubuntu to Centos letter, on Amazon AWS?
Ans(1) ₹0

What is La Liga?
Ans(1) ₹0

Is there any quick and shortcut way of migrating the website quickly?
Ans(0) ₹0

What is zend2?
Ans(0) ₹0

What will be the future of the Email System according to your experiences and opinion?
Ans(0) ₹0

My own name vs Unique name, which one is the best for my company name?
Ans(0) ₹0

Ajax auto load website vs PHP manually load website, which is best for earning online.
Ans(2) ₹0

Where I can learn php mysql?
Ans(0) ₹0

Which SQL does big companies like Amazon, Facebook, Google, etc. use? NoSql or Sql or ??
Ans(2) ₹0

Which one should I use for big website chatting app, Long poll vs short poll vs websockets vs SSE?
Ans(1) ₹0

Why it is not allowed to create a MP3 downloading website?
Ans(2) ₹0

MySqli Not Inserting - Before it was working but as I migrate my website to xampp it is not working.
Ans(2) ₹0

Eliminate render-blocking JavaScript and CSS in above-the-fold content, google speed test
Ans(1) ₹0

Why my withdrawal not transferred to my account ? Is there any problem?
Ans(1) ₹0

Does Google Adsense pays for viewing on our own website?
Ans(7) ₹0

Can I use Aws to create a big website like Facebook, Amazon, etc.?
Ans(1) ₹0

Why we should learn php programming? What is the important of it in website building?
Ans(0) ₹0

What is the mostly time that you see the UFOs?
Ans(1) ₹0

Which is the best Operating System(OS) for hosting a website?
Ans(1) ₹0

Why we should learn php programming? What is the important of it in website building?
Ans(0) ₹0

What is codeigneter and where is it used for?
Ans(0) ₹0

Everybody knows that the single used plastic is a big pollution for the environment but why it was still uncontrolled?
Ans(0) ₹0

Type w3schools php and learn php. w3schools is the best platform to learn php online.
Ans(0) ₹0

Can anyone earn money with fake clicks on Adsense ads? Does anyone successful in doing that?
Ans(3) ₹0

Why it\'s important to raise a voice against such people like Shad Guru, Modi, etc?
Ans(0) ₹0

Does Pakistan had power to have a war with India at this time? why they were shouting so much?
Ans(2) ₹0

Need a lists of PHP framework, can anyone provide me?
Ans(0) ₹0

I see lots of YouTubers or Bloggers show earning proofs on their channels? Are these real?
Ans(0) ₹0

Bro, do you think we can create our own Database System?
Ans(0) ₹0

What is GDP, how it works and what is its importance in our Nation?
Ans(0) ₹0

How Vishwakarma puja happens in our Bodo peoples house?
Ans(0) ₹0

Does anybody have the picture of Hans Christian Gram? Wana see him.
Ans(2) ₹0

Who is Hans Christian Gram and why he is so much popular?
Ans(3) ₹0

How pyshic powers work? Is it real or just rumors?
Ans(3) ₹0

Animate scroll to bottom when clicked on a button -javascript or jquery
Ans(3) ₹0

convert numbers into words in php
Ans(2) ₹0

html css center horizontal list, menu system
Ans(2) ₹0

jquery detect scroll to bottom of page and display the div else hide
Ans(2) ₹0

Is it possible that goat standing on two legs
Ans(0) ₹0

Dam Food Oye had launched in our Gossaigaon, but Delivery charge so much Rs.20 huh?
Ans(2) ₹0

what are the present topics going on this 2019 September? For bloggers and YouTubers.
Ans(2) ₹0

Why this govt doesn\'t want to believe that there is Global warming?
Ans(0) ₹0

Should I create multiple websites or just concentrate on single website?
Ans(0) ₹0

Is it a good idea to put my Adsense Ads on content with one sentence and some images?
Ans(0) ₹0

Google Keyword Planner vs SEMrush vs ahrefs vs Other SEO tools, which is the best?
Ans(0) ₹0

So why people share their ideas if it will bring lots of competition for themselves? I am talking about bloggers, YouTubers, etc.
Ans(0) ₹0

Should I use SMS or Email for Registering on the website? SMS OTP vs EMAIL OTP which is better?
Ans(0) ₹0

Is textlocal.com international? Can it send messages to every country of the world?
Ans(0) ₹0

Which is the best International SMS gateway service provider website with the cheapest and most trusted services?
Ans(2) ₹0

Can I convert large image file into data uri and use it in my web page?
Ans(0) ₹0

Mritunjoy QueQues is going to replace it\'s name to Mritunjoy Forum
Ans(1) ₹0

Can I get rank on Google without Backlinks? Is there any other ways?
Ans(4) ₹0

javscript check if the variable has value, if not then take action
Ans(2) ₹0

Where to get the Admit Card of HSSC exam Haryana, 2019, I heard it was realeased.
Ans(4) ₹0

Which is the most played sports in the world?
Ans(2) ₹0

Which is the most realistic working martial art, that works on Modern warfare?
Ans(2) ₹0

Does Psychic Training really work? Should I practice that?
Ans(1) ₹0

Why the big website like facebook or others doesn\'t use Node JS?
Ans(1) ₹0

Feedback Help Contact Terms&Condition Privacy Policy About us

277

Total users

90

Active users

271

Active Earners

Location

India, Assam, Bodoland, Gossaigaon, 783360
[email protected]


Find Us on

79+ Downloads

Download our Android Apps and Get Everything on your Mobile.

Copyright ©2017-19 mritunjoy.com,All Rights Reserved