i´ve wrote an Jquery function to my HTML, now the backend is adding <p>
tags as wrapper for the variables. Is it possible to remove them via Jquery? I found some options to remove it out of HTML stuff like "class", but no way to do the same in a Jquery function. Maybe someone can help. Thanks
Now it is looking like that:
$(document).ready(function(){
$('#<p>1</p>').on('click', function(){
$('#<p>berlin</p>').ScrollTo({
duration: 800,
easing: 'linear'
});
});
});
It should look like that:
$(document).ready(function(){
$('#1').on('click', function(){
$('#berlin').ScrollTo({
duration: 800,
easing: 'linear'
});
});
});
wrapper to the tags. It is possible to remove them in HTML tags. But i cant find a way to remove them out of Jquery.
– D20537 Jan 08 '16 at 14:56