below are jquey function
hide()
show()
keyup()
keydown()
submit()
preventDefault()
test() retun true if it find match else false
document.addEventListener("click", myFunction) // matlab click event par function call hoga
document.addEventListener("click", function(){ document.getElementById("demo").innerHTML = "Hello World";
classlist.mehod se koi bhi css claas ko add remove kar sakte hai
The classList property returns the CSS classnames of an element. retun DOMToken Object and call method.
The classList property returns a DOMTokenList.
(The DOMTokenList interface represents a set of space-separated tokens)
such a set is returned by Element.
classList or HTMLLinkElement.relList, and many others.
A DOMTokenList is indexed beginning with 0
Often an input String contains several groups of characters, where each group acts as a unit that
has significance. Such a group is called a token eg. 12 8 5 32 there rae four token in this example string
A delimiter is one or more characters that separate text strings.
Common delimiters are commas (,), semicolon (;), quotes ( ", ' ), braces ({}), pipes (|), or slashes ( / )
JavaScript functions are executed in the sequence they are called. Not in the sequence they are defined.
A callback is a function passed as an argument to another function.
Also .attr('value') returns the value that was before editing input field. And .val() returns the current value.
regex : modifier : i(case insensitive) m(mutiline check ) u
Regex Patterns:[abc](find one character from option ) [^abc](Find any character NOT between the brackets)[0-9] (Find one character from the range 0 to 9)
regex metacharacter: | Find a match for any one of the patterns separated by | as in: cat|dog|fish
. Find just one instance of any character
^ Finds a match as the beginning of a string as in: ^Hello
$ Finds a match at the end of the string as in: World$
d Find a digit
s Find a whitespace characte
b Find a match at the beginning of a word like this: bWORD, or at the end of a word like this: WORDb
regez qunatifier :
n+ Matches any string that contains at least one n
n* Matches any string that contains zero or more occurrences of n
n? Matches any string that contains zero or one occurrences of n
n{x} Matches any string that contains a sequence of X n's
n{x,y} Matches any string that contains a sequence of X to Y n's match is nXx and nXy