$(document).ready(function () { if(window.location.href.indexOf("#") > -1) { $(".list-group .list-group-item").css("width","100%!important"); } });