I have an input-field inside a form, which class changes dynamically, depending on an ajax-script (which i can not modify) from "foo" to "foo bar" back to "foo". I would like to modify the style of the field, when it s length is > 0, it s value does not contain "nid" and it s class is not "bar". My first idea was to have a setTimeout, that gets called every time the input field s class is "bar", until it is "foo". But i do not know whether this is good practice, nor how to do it …
How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.