Author: SibeeshVenu
-
How to hide a DIV when the website view in Mobile
Introduction Hi All, Hope you are fine. Today we will learn how we can hide a particular DIV element when the site is viewed in Mobile. ... -
Align DIV horizontally using CSS
Introduction Hi All, How are you today? Today we will learn how we can align out HTML DIV element horizontally using normal CSS styles. I hope ... -
Change your Azure Website URLto your cname for all Posts and Categories
In this article we will learn how we can change our website URL which we have hosted in Azure. And here I am using WordPress as ... -
Read appsetting from a web config file in client side
To read app settings key value from a web config file, do like the following. [js] var datalimit = ‘@System.Web.Configuration.WebConfigurationManager.AppSettings["JQXExcelLimit"]’; [/js] -
Disable the back button of a browser
Add this script to head section of that particular page. [js] <script language="javascript" type="text/javascript"> window.history.forward(); </script> [/js] -
Find out the nth element and get the particular string
To get the nth element [js] $.trim($("#pagerjqxgrid div:nth-child(3)").text()); [/js] To get the 1539 from a string of “1-10 from 1539” [js] $.trim($("#pagerjqxgrid div:nth-child(3)").text().split(‘of’)[1]); [/js] -
Find the span from the series of div and apply style to it
Find the span from the series of div and apply style to it. [css] #columntablejqxgrid div[role="columnheader"]:first-child span{ text-align: left!important; } [/css] It will find out the ... -
Select elements with a specific attribute using JQuery
Here let us assume that we have an HTML mark up as follows [html] <table Id="YearlyGridReport"> <tr level="1"> <td >Header Row1</td> <th ><span>2014</span></th> <th><span>2015</span></th> </tr> <tr ... -
JQuery Language Selector
Using the lang attribute to our HTML element, here I am using a div [js] <div lang="en"> <div lang="en-us"> [/js] Using the JQury Selector to select ... -
Find a string contains a particular string in JQuery
[js] var myVar="sibeesh passion"); if (myVar.toString().indexOf(‘passion’) > 0) { } else { } [/js] The above code helps you to find whether a string contains a ...