html - font-awesome , when use attribute the icon disapear -


i have following code:

<i class="fa fa-chevron-left"></i> 

but when add id , onclick attribute so:

<i class="fa fa-chevron-left" id="back" onclick="backnews();"></i> 

the icon disappears. can see problem?

the icon re-appears if remove attributes

i have tried remove <i> , replace <span> tag, no luck.

any suggestions welcome

please check if site's css accident applies css rules #back. happen if use id="back" or onclick="backnews();"? happen if change id this

id="backnow" 

?


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -