I try to check input, for value, with and without a string. The string (Path to the file) is immediately loaded via callback or by pressing a button, without entering any characters into the input.
function checkPath() { var val = $('#gamelocation').val(); if ($.trim(vall)) { $('#actionBtn').show(); $('#gameBlock').show(); } else { $('#actionBtn').hide(); $('#gameBlock').hide(); } } <input type="text" id="gamelocation" /> <div class="btn-group" id="actionBlock">...</div> <div class="btn-group" id="gameBlock">...</div> Tell me, please, how can I instantly hide the blocks if the input is empty and display if there is a record? (An entry is added to this plan: "D: \ Folder \ Folder \")
inputor just records of the form `D: \ Folder \ Folder`? - Raul Rojas