how to identify an html div id which starts with some pattern using jquery

Posted by dexter on Stack Overflow See other posts from Stack Overflow or by dexter
Published on 2010-01-25T11:21:48Z Indexed on 2010/06/14 7:02 UTC
Read the original article Hit count: 423

Filed under:
|

normally we use something like this to identify Id using jquery

 $("#PhotoId").html('some html');

here we get the html (say div) having id 'PhotoId' what if the id is partially dynamic i.e. lets say there are multiple photoes

each id would start with 'PhotoId' EX.

 $("#PhotoId" + result.Id).html(some html');

NOW, i want to identify html(div) which starts with 'PhotoId' how can it be done

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html