html - unterminated string literal when I click on anchor tag -


when click on tag getting below error

unterminated string literal

<a onclick="ga('send', 'event', 'cloudstore', 'click', 'cloud  here - banner’);" href="about.php" class="red-text block">read more</a>

in last parameter string, have backtick instead of single quote

'cloud here - banner’ <- see string ending literal

enter image description here

just use 'cloud here - banner'

function ga() {    }
<a onclick="ga('send', 'event', 'cloudstore', 'click', 'cloud  here - banner');" href="#" class="red-text block">read more</a>


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -