Latest Articles
-
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 ... -
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 ... -
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 ... -
Find object length in jquery
Consider below is my Json Object, now I need to know the length of this object. In array we can use the length property, ... -
How to use css property in JQuery
How to use css property in JQuery. [js] $("#main").css({‘width’: ‘99.5%’}); [/js] Here main is my UI element, Here I am assigning width as 99.5% -
Find and set checked true and call click event dynamically
Find and set checked true and call click event dynamically. [js] var liIndex = 6; $(".containerul li:nth-child(" + liIndex + ")").find(".boxcheckbox").prop(‘checked’, true); $(".containerul li:nth-child(" ... -
Disable a check box in jQuery
Disable a check box in jQuery [js] $("#myChk").attr("disabled", true); [/js] Here myChk is my check box. -
How to add a css class to an element in JQuery
How to add a css class to an element in JQuery [js] $("#myElement").addClass(‘myClass’); [/js] -
How to check an element has particular css class or not
How to check an element has particular css class or not. [js] if ($(‘#myElem’).hasClass(‘myClass’)) { alert(‘Has class’); } [/js]