Tag Info

New answers tagged


You can use jQuery (or even plain JavaScript) to get the attribute from the generated for the wev part. The only thing you'd need is somethint that allows you to identify this Web Part even from within the main container. If you own the code for the WP, you can add a custom div with and ID or a class (or data-something), get that using jQuery and then ...


Hi Tanmay Your Web Part will have an element attribute called webpartid so you can use this to select all Web Parts, like this (jQuery): $('[webpartid]');

Top 50 recent answers are included