You can use individual JavaScript plugin in Bootstrap framework also, rather using whole Bootstrap JS file built on jQuery. Once I had need to include only Navbar component which depends on Collapse JavaScript plugin from Bootstrap.
Search Results » ajax
Client Side Validation using ASP.NET Validator Controls from Javascript
We use the server side control in ASP.NET and for validating them, we use the server validation control. These ASP.NET validation controls provide functionality to perform validation using client script but these are handled at the end of the page by rendered validation script. When we want to post the data by AJAX or JavaScript that time Validation control won’t fire the validation.
How to set scroll position to bottom in a div using javascript
Generally we create a div with the content and dynamically update the content. Further, we want to maintain the scroll position according to updated content. So there is one question of how to set scroll position to bottom in a div using JavaScript. Same type of problem I faced few days ago when I was working with a ajax message application and I am trying to get a div to scroll to the bottom when chat is updated.
20 jQuery Interview Questions – I
This post is first article in the series of Interview Questions about jQuery. This post is comprehensive collection of 20 jQuery Interview Questions from beginner level to experience level. Let’s start reading with first simple question, what is jQuery?
Getting Class or Id of element that fired an event
In jQuery we sometimes need to find class or Id of element that fires an event in a web page. This simple code below will do the job for getting Class or Id of element that fired an event in jQuery.
First of all we need jQuery so you need to add self hosted jQuery or one from available CDNs. I’m getting it from Google here.
Getting Checkbox Values in jQuery
Many times we use checkbox in the form control and post the form using jquery ajax and then we are required to access those form data from client side scripts, like Javascript. Among all possible form control, dropdown box, checkbox and radio buttons are having multiple options to select. So, we need to push all selected values of these form controls into an array using Javascript
Textarea characters count
This article describes how can we implement textarea characters count that can also work during cut/copy and paste as well as you can also select characters upto desired length or can show reverse counting (characters remaining) in textarea. There are many tutorials online but they seem to make it more complex than it needs to be. Just a few lines of jQuery does the trick.
Automatic Update Copyright Year
Still wonder how to automatic update copyright year instead of changing hard-coded value each year. Lol!! You need some fresh air to let your mind breathe. Use PHP’s date() function which can echo the current year in your copyright text.
Copyright ©< ?php echo date('Y'); ?> | Your Company Name
55 WordPress Interview Questions and Answers for Experienced – Updated 2020
This consistently updated series of WordPress Interview Questions and Answers is here. These questions are asked generally from a WordPress developer having around 3 or 5 or more years of experience. However, freshers can also take their expertise at an advanced level with help of these WordPress Interview Questions and Answers.
Including a JavaScript file in another JavaScript file
Here I will describe the way of including a JavaScript file in another JavaScript file. Because sometimes we need dynamic loading of JavaScript, may be based on some condition. In Css, We have already @import to include one css file into another.