Hi all.
I have used tabs for different language (each tab ~ language) and content of tab is a textarea.
What do you think is the easiest or best way how to hilight tabs where textareas are empty?
I was thinking about something like
- $( function() {
- $("#tabs > li").each(function() {
- var ref = $(this).find("a").attr("href");
- var $div = $(ref);
- if ( $div.find("textarea").value() == "" ) { $(this).css({ "background": "red"}); }
- }
- }
This may not work, it's just blind shooting :)
Anyway is there better way?