Prev Demo
jQuery
>
.Scrollleft() - Get & Set Horizontal Scroll Position
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <style> #divScroll{ color:green; padding:10px; margin:10px; border:2px solid; height:600px; width:800px; } </style> </head> <body> <p id="divScroll">This is the main text of the Page, This is the sub content of the page and also it includes many subtitles. These all are done by the developers of techfunda.com and dotnetfunda.com and you can find the many intresting things in the techfunda.com and also you can be able to learn the all the technologies at free of cost with out going any where. The main theme of the techfunda.com is to provide the free tutorials to the people who want to survive in this competetive world.</p> <p></p> <script> alert($("#divScroll").scrollLeft()); $("#divScroll").scrollLeft("100"); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output