Selecting checkboxes based on URL parameters – codereview.stackexchange.com

Is there any way to reduce these lines of code? var url = window.location.href.split("?"); if(url[1].toLowerCase().includes("chk=webdes-check")){ $('#website-design').attr('checked', true); } ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Selecting checkboxes based on URL parameters – codereview.stackexchange.com"