javascript - Kendo UI/jQuery redirect after verification -


i'm coding hybrate mobile app telerik product, appbuilder. have follow problem:

this code:

$('#search-btn').on("click", function () {     var barcode = document.getelementbyid("product-search-id");     if (barcode.value == 3800048307270) {         window.location.href = "../views/scan-view.html#activia-light-yogurt-blueberry";     } }); 

but when select product barcode 3800048307270 , click search, window.location.href doesn't redirect me ../views/scan-view.html#activia-light-yogurt-blueberry. if write web url in window.location.href redirect me. i'm sure set right path.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -