[2] What is Class?
[3] What is an Object?
[4] What is meaning of Encapsulation?
[5] What do you mean by Polymorphism?
[6] What is Inheritance?
Practical lessons in Sitecore, AI, architecture and modern engineering.
[1] What is Object Oriented Programming? [2] What is Class? [3] What is an Object? [4] What is meaning of Encapsulation? [5] What do y...
We can easily find out items are available in another database or not. As we know sitecore uses different-different database for specific re...
1.What will be the output following script? DECLARE @EMP TABLE ( ID INT, Name NVARCHAR(100) ) INSERT INTO @EMP (ID,Name) SE...
I have a dynamic table with id “grdComDealerMntce-Ct100_Ct200_DealerCode”. I want to specify this id in Jquery selector which starts with gr...
I have a dynamic table with id “grdComDealerMntce-Ct100_Ct200_DealerCode”.
I want to specify this id in Jquery selector which starts with grdComDealerMntce and ends with DealerCode.
$(‘[id ^=grdComDealerMntce][id $=DealerCode]’)
^: Starts with
$: Ends with
I have some ids on my page and I want to specify all those ids in class selector. How we can do so ? Css allow us to make regular expressio...
I have some ids on my page and I want to specify all those ids in class selector.
How we can do so ?
Css allow us to make regular expression class selector.
Example:
table [id^=grdComDealerMntce][id$=_mainTable] td
{
text-align:left;
}
I have checkbox list with first element as “"All”. I want to all following operation on this. 1 .Click on “All” select all items 2. If ...
I have checkbox list with first element as “"All”. I want to all following operation on this.
1.Click on “All” select all items
2.If I select all items except first item “All”,first item should automatically checked.
3.If I have selected “All” items and I am deselecting any other items “All” should be automatically
deselected.
Jquery Code block:
$(document).on(‘click’,’[id*=cblYear] input:eq(0)’,function(){
var toggle = this.checked;
$”[id*=cblYear] input”.attr(‘checked’,toggle);
});
$(document).on(‘click’,’[id*=cblYear] input:gt(0)’,function(){
if(!this.checked){
$”[id*=cblYear] input”.eq(0).attr(‘checked’,false);
}else{
$”[id*=cblYear] input”.eq(0).attr(‘checked’,$”[id*=cblYear] input”).slice(1).filter
(‘:not(:checked)’).length ==0
}
© Shatrughna Kumar. The Tech Pursuit.
Views expressed here are personal and do not represent any employer.