Skip to content
  • Home
  • About
  • Contact

How To Find It

Tips For Program

  • Home
  • HTML
    • HTML
    • Jquery & Javascript
    • css
  • Php
  • sql
  • wordpress
    • woocommerce
      • Woocommerce Hooks
    • Plugin developement Tips
  • General

Category: Jquery & Javascript

How to declare an object in javascript?

How to declare an object in javascript?

August 7, 2017 admin
How to declare classes in jaascript? Objects are building blocks of javasript. “Class” keyword not using in javascript. Its all about objects. Two methods are there: literal object. 1.var ... Read More
Object Oriented Concept in javascrips?

Object Oriented Concept in javascrips?

August 7, 2017 admin
Object oriented always used to refer about objects. Programming based on objects( actually a building block of javascript). All javascript components are objects. Eg: strings, functions etc… A s... Read More
display none using javascript

display none using javascript

August 7, 2017 admin
Either we can use show() and hide() functions for this: $(“#hide_id”).hide(); $(“#hide_id”).show(); Or using css in scripts: $(“#hide_id”).css(“display”... Read More
How to check if element exists in the html page using javascript?

How to check if element exists in the html page using javascript?

July 26, 2017 admin
Suppose it is a div with id “slots” then in jquery: if( $(“#slots”).length < 1 ) { console.log(“Div is not present”); }else { console.log(“Div with id #slo... Read More
last element in an array using java script

last element in an array using java script

July 5, 2017 admin
arrayname.slice(-1)[0]; arrayname.slice(-1).pop();... Read More
Uncaught TypeError: Cannot read property ‘className’ of null

Uncaught TypeError: Cannot read property ‘className’ of null

June 22, 2017 admin
This error occurs because we called a class or id that is not defined inside the body tag in html , or its div is not defined in a proper way. Actually div is not existed, there is no element html ele... Read More
Submit a form using javascript

Submit a form using javascript

June 22, 2017 admin
We can submit a form using its name, id, class and tag <form id=”form” name=”form1″ class=”form”> </form> Suppose forms name is “form1”, the... Read More
How to make page scroll position to top at page refresh in HTML

How to make page scroll position to top at page refresh in HTML

June 15, 2017 admin
$(document).ready(function(){ $(‘html’).animate({scrollTop:0}, 1); $(‘body’).animate({scrollTop:0}, 1); });... Read More
Add placeholder using javascript for a input field

Add placeholder using javascript for a input field

June 15, 2017 admin
If input field has an id “s” Then: $(“#s”).attr(“placeholder”, “Search”);... Read More
Adding a new attribute using jquery to a div :

Adding a new attribute using jquery to a div :

June 15, 2017 admin
Specify the attribute to the selector as below: $(“.ad”).attr(“height”,”500px”); $(“#ad”).attr(“height”,”500px”); $(“pR... Read More
  • 2 of 4
  • « Previous
  • 1
  • 2
  • 3
  • 4
  • Next »

Recent Posts

  • Advanced WordPress Interview Question
  • How to include styles and scripts on wordpress admin pages?
  • Page Template dropdown missing from page attribute in wordpress
  • How to add a logo uploading field in customize settings in wordpress
  • How to add a new page in wordpress admin

Categories

  • css (13)
    • Bootstrap (2)
  • General (14)
  • HTML (10)
  • Jquery & Javascript (39)
    • OOP javascript (11)
  • Php (39)
    • Amzon s3 and Php (3)
  • sql (2)
  • wordpress (154)
    • Hooks & Filters (1)
    • Plugin developement Tips (7)
    • woocommerce (50)
      • Woocommerce Hooks (17)
Theme Designed by InkHive. How to find it © 2016