0

Find if a string contains a substring in JavaScript!

javascript

This post will explain how to find a substring in a string using pure JavaScript. Let’s see how can we achieve this.

The above script will show an alert ‘true’ because sub-string ‘tin’ is present in the string ‘testing’.… Continue Reading

0

How to check if an element is hidden in jQuery?

jquery-tutorialsmade

There are many ways to check if an element is hidden using jQuery. I will list out mostly used methods in this post. Let’s say the element has id=”test”. Then the code will be, Method 1: 

Working example for… Continue Reading

0

PHP Script to Generate Multiplication table!

phptutorials

Hello students and dear programmers. Today’s script we are going to see how to generate a multiplication table using PHP script.

The above script is so simple and the output will be something like this. 7 * 1 =… Continue Reading

0

jQuery to find which key is pressed!

jquery-tutorialsmade

Here is another simple jQuery snippet which tells which key is pressed. It’s so simple to find out which key is pressed using jQuery event. See the below snippet JS Snippet:

A full demo script:

You can see… Continue Reading

0

PHP Script to get input values from a HTML form!

phptutorials

In this post we are going to see a very basic PHP script which might be useful for beginners who wants to learn PHP language. Let’s create a simple HTML form (index.html):

I have used Bootstrap CSS to make… Continue Reading

0

PHP Script to find Largest & Smallest value in an array without using loop.

phptutorials

These kind of question are asked many time in Interviews to confuse the candidates. It’s actually much easier than using loops. So how to find the largest and smallest value in an array without using loop? It’s very simple, we… Continue Reading

0

Python Program to count the number of vowels in a string!

python-tutorialsmade

Here is another interesting Python program which will take a word or sentence as an input (basically a string) and return the number of vowels present in it. There are numerous way you can write a Python program to count… Continue Reading