Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var widgets = {
- 'my-featured-videos' : 'http://example.com/featured-videos',
- 'my-music-videos' : 'http://example.com/music-videos',
- 'vblog-videos' : 'http://example.com/vblog-videos',
- 'test' : 'http://example.com/test'
- }
- jQuery.each( widgets, function( index, value ) {
- var widget_title = jQuery( '#' + index )
- .closest( '.widget-builder' )
- .find( '.widget-title' );
- widget_title.html( '<a href="'+ value +'">'+ widget_title.html() +'</a>' );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement