How do I use class in the code
2 posters
Page 1 of 1
How do I use class in the code
hi
How do I use class in the code ?
this ID (#text_editor_textarea)
Can I use a class instead of ID ?
How do I use class in the code ?
- Code:
$(document).ready(function() { $('#text_editor_textarea').before('<div class="aviso_normas"><b>Antes de postear en el foro de soporte recuerda: <a href="http://url del tema">¿Cómo crear un tema? </a></b></div>');
});
this ID (#text_editor_textarea)
Can I use a class instead of ID ?
midoweb96- Forumember
- Posts : 166
Reputation : 12
Language : Css - Html - Jquery
Re: How do I use class in the code
Yes, of course. It's like:
- Code:
$(document).ready(function() { $('.class').before('<div class="aviso_normas"><b>Antes de postear en el foro de soporte recuerda: <a href="http://url del tema">¿Cómo crear un tema? </a></b></div>');
});
Guest- Guest
Re: How do I use class in the code
Hi,
You can use a class but your quick replay is an ID and if you want that to be applayed on your quick replay you must use the ID. If you want it to be applied (random example) to lets say navigation you'll use a class: a.mainmenu instead of #text_editor_textarea.
Edit: Sorry Gassy, wrote at the same time.
You can use a class but your quick replay is an ID and if you want that to be applayed on your quick replay you must use the ID. If you want it to be applied (random example) to lets say navigation you'll use a class: a.mainmenu instead of #text_editor_textarea.
Edit: Sorry Gassy, wrote at the same time.
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Re: How do I use class in the code
Thank you Spankers , Nera
Solved
Solved
midoweb96- Forumember
- Posts : 166
Reputation : 12
Language : Css - Html - Jquery
Re: How do I use class in the code
Topic Solved & Locked |
Nera.- Energetic
- Posts : 7078
Reputation : 2017
Language : English
Location : -
Similar topics
» How to add a class to this javascript code?
» javascript active class code request
» When i paste a long code via [code][/code] the page expands
» Class or ID of Multiquotes?
» Class forum banner help
» javascript active class code request
» When i paste a long code via [code][/code] the page expands
» Class or ID of Multiquotes?
» Class forum banner help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum