How to select any controls and style with a Title attribute containing the word "View"?

 Posted by vishalneeraj-24503 on 5/6/2014 | Category: ASP.NET Interview questions | Views: 790 | Points: 40

This is done using [attribute~=value] selector attribute which is used to select elements with an attribute value containing a specified word.

For Example:-
<style type="text/css">


<img src="img_view_details.jpg" title="View Details" width="20" height="15" />
<img src="img_flwr.gif" title="View Image" width="100" height="100" />

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response