Latest Articles
-
Check whether an array element is undefined or not in jQuery
This will help you to check whether an array element is undefined or not in jquery [js] if (typeof localHeaderColumnArray[0] != ‘undefined’ ) { ... -
Parse a string to Json in JQuery
This will help you to parse a string to Json [js] var jsonConvert = $.parseJSON(changedColumnHeaders); [/js] Here changedColumnHeaders is my json string -
Delete an element from an array in jQuery using the index
This will solve you to delete an element from an array in JQuery using the index Consider following is my array [js] localHeaderColumnArray: Array[2] ... -
Round Off the number to two decimal places in jQuery
Round Off the number to two decimal places in JQuery. [js] var num=2.48776582879546876542576876875325438965235; alert( num.toFixed(2)); [/js] Here toFixed is the function which does the ... -
Find a number from a string and remove in jQuery
Find a number from a string and remove in JQuery [js] var str="Sibeesh007" str.replace(str.match(/(\d+)/g)[0], ”).trim(); [/js] Here str is my string. I hope it ... -
Get the row count of JQX Grid JQwidget
Get the row count of JQX Grid JQwidget. [js] var dataCount = $(‘#jqxgrid’).jqxGrid(‘getrows’); var len=dataCount.length; [/js] I hope someone finds it is useful. -
Remove % and $ From a String using JQuery
[js] var num=’$100%’; $(‘div’).text(num.replace(/\,/g, ”).replace(/\$/g, ”).replace(/\%/g, ”)); [/js] Kindest Regards Sibeesh Venu -
How to reload the page when resize the page in jQuery
The following method will help you to reload the page when you resize the page, For example when you press F12 in your browser ... -
How to remove the spaces between the string in JQuery
How to remove the spaces between the string in JQuery. [js] var str="Sibeesh Passion" var strAfter=str.replace(/\s/g, ”); [/js] -
How to forcibly call the change function of UI element in JQuery
How to forcibly call the change function of UI element in JQuery. [js] $("#ddlcubeName").change(); [/js] Here ddlcubeName is my UI element. I wanted this ...