jquery - Javascript function on click -
i'm @ point in day have simplest bloody issue can't see it.
to save me losing hair , crying in shower, i'm asking question.
why won't confirm box appear.
$(document).on('click', '.create_btn', function() { if (confirm('are sure want create user?')) { } else { return false; } showcreateloadingscreen("creating..."); ajaxhandler('library/ajax/ajax.admin-account-create.php', data, 'post', true); });
there's js, here's input.
<form action="" method="post"> <div class="span3"><input type="text" name="ausername" id="ausername" class="span12" placeholder="username" value="%enteredusername%"></div> <div class="span3"><input type="text" name="aemail" id="aemail" class="span12" placeholder="email" value="%enteredemail%"></div> <div class="span3"><input type="password" name="apassword" id="apassword" class="span12" placeholder="password"></div> <div class="span3 admin-product-actions"> <input type="submit" name="create" class="btn create-btn btn-success span12" title="create account" value="create account"> </div> </form>
just replace create_btn
create-btn
$(document).on('click', '.create-btn', function()
Comments
Post a Comment