June 13, 2014

Jquery starts with and ends with selector

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

No comments:

Post a Comment