
Jquery provide a lot of useful plugin. But sometimes you are allow using pure jQuery to complete the feature.
Below example code showing how to using pure jQuery to completed scroll to element feature.
JQuery smooth scroll example code
$db = JFactory::getDbo(); $query = "INSERT INTO table (`username`, `password`) VALUES (".$db->quote($username).", $db->quote($password))"; $db->setQuery($query); $db->query();In the query you not need to add Single Quote Symbol. Because it will help you add in your query.