Author: SibeeshVenu
-
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 helps. -
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 [js] $(window).on(‘resize’, ... -
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 to be ... -
Check a string is number or not in C#
Check a string is number or not in C# [csharp] double result; bool isNumeric = double.TryParse(rdr[i].ToString(), out result); [/csharp] Here rdr[i].ToString() is my string to be ... -
How to trim that last occurrence of a character in C#
How to trim that last occurrence of a character in C# The below example will show you how to do that:) [csharp] string str = "www.sibeeshpassion.com|"; ... -
Make a check box is checked in JQuery
Make a check box is checked in JQuery. [js] $("#mapEnableLegend").prop(‘checked’,true); [/js] Here mapEnableLegend is my check box ID -
Check Whether a check box is checked or not in JQuery
Check Whether a check box is checked or not in JQuery [js] $("#mapEnableLegend").prop(‘checked’) [/js] Here mapEnableLegend is my check box, the above code will return true, ...