Jquery has a validation plugin which requires “rules:” and “messages:”. Rules are the validation case that you want to check on an input field. And, Messages are the response to those input field which violates the rules. Jquery validation uses…
Regex (Regular expression) To find if the string contains a numeric value.
Sometimes we have to validate if the user has entered a specific pattern or not, this pattern is validated by matching it with its regular expression. To Find if any numeric value appears in a string: To Find if any…
How to EditText accepts alphabets only in Android?
Add this line in your EditText tag in layout(xml) file or you can read more about this here Full code EditText should be look like
Conditional operator problems in JavaScript?
Let me give you a simple logical problem:- What will be the output of console.log(1>0)? If your answer is true than you can proceed to next problem, if your answer is false go visit your Mathematics teacher. Now What will…
What is Anonymous function or Closure in Php?
These are the function with no defined function. Mostly used for callback. These are accessed by the variables on which they are defined or invoked dynamically.
How to use multiple where condition in Laravel?
You can add where clause to a model like ->where(/*condition*/) Sometimes We need to add orWhere condition to our queries, between two cases. This might interfere with other conditions so we need to pass them in a function. To get…
How To measure Execution time in Node?
To measure execution time in Node you can go with below code. IF you still face any issue or help feel free to connect with us. Use console.time() and console.timeEnd()
How to Implement Sticky Scroll bar using CSS
The scroll bar is part of the webpack engine and differs from browser to browser. To Give your site a uniform field on all the client ends CSS can be used. Below there are three types of scrollbar which made…
Laravel Quick DB query building:
How can we increase and decrease in Laravel? Laravel gives us the function to do this fast and effectively. Please follow the below instructions to do this. Increase Value of a numeric column Decrease Value of a numeric column
Difference between visibility hidden and display none?
Both do the job of hiding a portion of web page differently and are not interchangeable. Please check the below example to clear the difference between visibility hidden and display none. Like visibility: hidden; this will hide the entity but space…