Tutorials

Category

25 posts found

3 Jul 2014
0.75K
No Comments

Its a great feature of #html5 to paste a text data into a element with contenteditable attribute, but when you copy data its copy the rich text with format after paste of content its looks ugly in element, so here code its won’t make ugly pasted content

Post in

3 Jul 2014
0.8K
No Comments

Its really sometimes we need to call two functions, first we user click on specified element and another when user clicked on not specified element, Eg: you have a textbox and control panel div of text box, but you want to call a function to show control div of  textbox when

Post in

3 May 2014
0.39K
No Comments

WordPress theme development tricks don’t forget them.   CALL WP_HEAD FUNCTION IN YOUR THEME’S HEADER.PHP FILE Call wp_head() function in your theme header.php file because many plugins even theme developer add javascript, css files through functions.php file with many some functions like wp_eneque_script()  wp_eneque_style(), and many seo plugins like WordPress SEO, All

Post in

19 Apr 2014
0.47K
No Comments

In html on anchor tag without a href link we had # into href but when we click on that href with # hash its moved scroll to top position of page and add # in end of the page url, and we feeling annoyed on click that link, here

Post in

19 Apr 2014
13.52K
No Comments

Its hard for peoples who don’t know more about programming how they call a wp_nav_menu_walker to manipulation wp_nav_menu data, here is I am telling you easy way to add your custom class in wp_nav_menu’s link. Go to Media from WP-Admin, At the top of page you will see screen options

Post in

19 Apr 2014
0.38K
No Comments

These three functions of #jQuery save my alot time in jquery elements manipulation, after extended these three function I cannot do first hide element and then fadeIn, and fadeOut_remove save your time and code,without this you need to first fadeout the element then callback a function in after complete of animation

Post in

19 Apr 2014
0.34K
No Comments

The #json data tome times thrown an error on console when it get null data instead json data, so here is the best way to check if your data is #json then use it

Post in

15 Apr 2014
0.86K
No Comments
Develop user friendly alerts in jQuery css

We have need the alerts popup to show user friendly alerts and message popup instead a annoying browser alert(‘hhah’); because somehow this javascript alert annoying user and and won’t allow to do anything like go to another tab or scroll down of page until user click on OK or cancel

Post in

11 Apr 2014
0.36K
No Comments

Some of designer when they slice layout they create form submit button with a anchor tag and href=”hashtag” and then users cannot able to submit form when they press enter in form fields, I have wrote little code to submit even from don’t have a input type submit button, and

Post in

11 Apr 2014
0.14K
No Comments

We always avoid to use in-line #css in elements and now also avoid to use in-line #javascript events like onclick=”window.location=’http://www.sdtuts.com’;” on elements, and you most need to make element, div redirectable, and maybe we cannot add all of elements in under of #anchor #tag example then I have wrote a

Post in