Skip to content

Instantly share code, notes, and snippets.

@peterblazejewicz
Created May 16, 2014 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterblazejewicz/dc3ee3a918f355e2157c to your computer and use it in GitHub Desktop.
Save peterblazejewicz/dc3ee3a918f355e2157c to your computer and use it in GitHub Desktop.
Add attribute (spellcheck) to Bootstrap modal at runtime
$(function(){
$(document.body).on('show.bs.modal', '.bootbox.modal', function(event){
$(event.target).find('input[type="text"]').attr('spellcheck', false);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment