mrjerk: Search String

Beitrag lesen

Hi Michael,

So my question is: how can i make smth like a "like" statement in SQL for javascript?

Check out the search-Method of the String object.

It allows you to use all kinds of regular expressions, and you can also use modifiers (in your case "i"):

  
if (myString.search(/smth/i) >= 0) {  
   // Found  
}  

That should work (didn't try it :) ).

And i defined a css id with "klasse1" and told it that there should be top 5px, but all those divs just still hang together.

Does your class "klasse1" has a "position" attribute?
Positioning only works if you use "position:absolute" or "position:relative"
(see http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position).

Regards,
Joerg