I have a problem, and I would like you to advise me to solve it, if you do not mind ... In my HTML source code there were several fragments of CSS codes here and there. So I decided to put it in a file called main.css and do the following in the chapter section
<link href="css/principal.css" rel="stylesheet" type="text/css" />
It worked wonderfully! My idea was to do the same with the javascript code in my HTML, but that didn't work. This is one of them:
$("[data-slider]") .each(function () { var input = $(this); $("<span>") .addClass("output") .insertAfter($(this)); }) .bind("slider:ready slider:changed", function (event, data) { $(this) .nextAll(".output:first") .html(data.value); });
Is there any special way to do this? My goal is that the page has the least amount of code, I am well indented, documented and clean. Greetings, I will wait for your answers! Please excuse my English ...
source share