question may seems to be silly, just i am curious about this. suppose in my html or aspx page i added comment for some javascript code, when the page loads, it renders as the page it is inlcuding comments. as i thought that comment will be ignored from the execution. is it same apply for rendering ? will it be possible.
- Comment are used to describe what the code does. so below i wrote " this for replacing image ". can we hide from rendering.
P.S : As this question has no special reason, just i am curious . whether it is possible or not.
$(".SomeID").slice(5, ExpandLength).each(function() {
this.src = this.src.replace("some.gif", "som1.gif"); // this for replacing image
});