Disable alt atribute
2 posters
Page 1 of 1
Disable alt atribute
Hi,
can i disable "alt" atribute from "img" html-tag for some imagine from my forum ?
I tried one jquery code but didn't succeed:
can i disable "alt" atribute from "img" html-tag for some imagine from my forum ?
I tried one jquery code but didn't succeed:
- Code:
$('#id-of-imagin').attr('alt', '');
fantastickmath- Forumember
- Posts : 31
Reputation : 0
Language : Ro
Re: Disable alt atribute
Up,fantastickmath wrote:Hi,
can i disable "alt" atribute from "img" html-tag for some imagine from my forum ?
I tried one jquery code but didn't succeed:Ideas?
- Code:
$('#id-of-imagin').attr('alt', '');
I wish if you tell me something, i dont care if it posibile or not...
You can tell me if it's not posibil i will stop waiting for answers..
fantastickmath- Forumember
- Posts : 31
Reputation : 0
Language : Ro
Re: Disable alt atribute
Hi,
Something like this would work...
Something like this would work...
- Code:
$('#id-of-imagin').removeAttr('alt');
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Disable alt atribute
It's not work...
I took the code and i put it in Javascript codes management and it's not worked
I took the code and i put it in Javascript codes management and it's not worked
fantastickmath- Forumember
- Posts : 31
Reputation : 0
Language : Ro
Re: Disable alt atribute
The line of code is what you need. To use it in a Javascript file, however, you need to enclose it in a startup function, like this:
- Code:
$(function() {
$('#id-of-imagin').removeAttr('alt');
});
Guest- Guest
Re: Disable alt atribute
Dion is correct. Also, don't forget to edit this part as per requirement...
$(function() {
$('#id-of-imagin').removeAttr('alt');
});
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Similar topics
» HOW CAN I DISABLE THESE ADS
» How to disable this?
» How to disable
» Can i disable Ads and use my own ads CPM
» How to disable that ?
» How to disable this?
» How to disable
» Can i disable Ads and use my own ads CPM
» How to disable that ?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum