Contact Form7 is a well known wordpress plugin which is used mostly to develop a contact/query form. We can use all type of fields in contact form and need to assign values static. But there is no option of dynamically adding the values to fields in contact Form7 plugin. Here I am describing the way of dynamically adding options to select tag in Contact Form7.
Author » K K Agrawal
getting timestamp in JavaScript
I am describing here getting timestamp in JavaScript. In development,so many times we do the date and time manipulation and If we need to do it client side means we need to use JavaScript.
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.
Number of days in a month
PHP provides functions to get the number of days in a month for a specified year and calendar. We can use date(‘t’) or cal_days_in_month. See syntax, parameters and examples in rest of the article.
Difference between “display:none”, “visibility:hidden” or “opacity:0”
In HTML, We need to hide and show the elements according to our requirement and we achieve this with different ways. An element could be hidden with “display:none”, “visibility:hidden” or “opacity:0”. But these options are used according to their requirement because their usage are different.
How to check if something is hidden in jQuery
In jQuery and css, We hide and show the visibility of the element.We can use the functions .hide(), .show() or .toggle() or we can do it using css function also. How would we test if an element is visible or hidden using jQuery?
Embed base64 encoded images
Most modern desktop browsers such as Chrome, Mozilla, Internet Explorer supports images encoded as data url. But there are problems displaying data URLs in some mobile browsers like Android Stock Browser.
Here we are presenting that how we can embed base64 encoded images in various platforms.
Implement styles on parent tag if it has children
We need to implement the css things based on the condition that the parent tag has a child or not. For the same,I faced an issue of implement styles on parent tag if it has children.
I found many tutorials for solving this problem using jQuery or javascript. But I was looking the solution using css.
Add arrow in anchor tag using css3
In every website, we use menu and other things with ordered/unordered list. For displaying nested or next level, we need to place the arrow to indicate next level. We can add arrow in anchor tag using css3.
Open google map marker info window
In google map, we point the specific location based on it’s longitude and latitude and create a marker on that point. But If we want to show some information about that point, then we need to attach an info window with that marker which can be associated with marker’s hover or click event.