Category Archives: javascript

fading image using javascript

Share Show me what it does! Hide – Show Click on a link above to make the image disappear and re-appear by gradually fading in/out. It uses CSS transparency, in CSS you can set the transparency in different ways. To … Continue reading

Posted in javascript | Tagged , , | Leave a comment

javascript form validation

SharevalidateEmpty ( ) The function below checks if a required field has been left empty. If the required field is blank, we return the error string to the main function. If it’s not blank, the function returns an empty string. … Continue reading

Posted in javascript | Tagged , , , | Leave a comment

javascript: escape()

ShareProblem: Getting error on ajax when passing url with “&” on it. Solution: escape() Definition and Usage The escape() function encodes a string, so it can be read on all computers. Syntax escape(string) Parameter Description string Required. The string to … Continue reading

More Galleries | Leave a comment

javascript: test()

ShareDefinition and Usage The test() method is used to search for a match of a regular expression in a string. This method returns true if a match is found, and false if not. Syntax RegExpObject.test(string) Parameter Description RegExpObject Required. The … Continue reading

Posted in javascript | Tagged , , | Leave a comment

multi level menu js less

ShareMeet the markup To start, we should use the best method for defining a navigation menu — a list. For this example, we will work on a simple HTML unordered list. {Line wraps are marked ». –Ed.} <ul> <li>Sunfishes <ul> … Continue reading

Posted in css, dom, javascript | Tagged , , | Leave a comment