Attribute Starts with Selector in jQuery
In this quick post you will learn how to find elements in the DOM that have the specified attribute with a value beginning exactly with a given string. Actually, this problem was asked by my one of the friend Md Ibrahim Rashid, who is from Kolkata at Kolkata Geeks Developer Conference 2012. Let’s look at the HTML Markup and a problem:- < div > < a id ="abc" href ="#"> Link 1 </ a >< br /> < a id ="bdc" href ="#"> Link 2 </ a >< br /> < a id ="acd" href ="#"> Link 3 </ a >< br /> < a id ="cca" href ="#"> Link 4 </ a >< br /> < a id ="adc" href ="#"> Link 5 </ a >< br /> </ div > In the above markups, I have 5 links with id attribute. If you look at id attribute’s value, you will find 3 id’s value sta