Mainly jQuery .focus() event is used to get focused element, but what if we have a chain of elements in a single .focus() event? In this post i simple describe that how do we get focused element with jquery in a chain of elements with the use of .focus() event. As you see below highlighted codes i show you both the jquery section and the html section, First i want to describe the html section, in the HTML section in also mentioned the ID of the the input element, all the ID’s are different according to the input element.
I develop this function to short the string without cutting the words. As we now that PHP’s substr() function only provide the part of the string, substr() function provide the string between the two parameters, start from and end to.
So I need a function that provide the string arround the given starting from and end to range. Below given function provide the arround complete word from the string. This function check the nearest space into the string and provide the nearest word without cutting. If you guys have a better alternative then please feel free to share the codes in the comment section.
If we are talking about SEO, then google has been announced that the speed of your web page also matters to improving your page rank and website performance. In this post, we are talking about that how to improve the website loading performance so that the speed of loading the webpage also increase, and if you want to check the increased speed of your webpage the there is a page speed add-on available for Firefox, which is automatically integrated into firebug.Read More
- Chrome 1.0
- Firefox(Gecko) 4.0(2)
- Internet Explorer 10
- Opera 10.5
- Safari (WebKit) 3.2
There are three methods to detect the key codes of keyboard.
If we are talking about the cross-browser compatible then keyup and keydown are the best solution for this.