Author: SibeeshVenu
-
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, but for ... -
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(" + liIndex ... -
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] -
Remove an attribute from an html element
Remove an attribute from an html element . [js] $(‘#btnCreate’).removeAttr(‘disabled’); [/js] Here I am removing the attribute disabled from the element btnCreate. Regards www.sibeeshpassion.com -
Selector to find elements which are all have a particular class name.
Selector to find elements which are all have a particular class name. [js] $(".container").find(".boxcheckbox") [/js] Here .container is my parent class name and .boxcheckbox is the ... -
Passing a DataTable to a Stored Procedure
This article explains how we can pass our data table to a stored procedure in C#. We all passed parameters to our stored procedures right? What ...