Home » Posts filed under HTML
Showing posts with label HTML. Show all posts
Monday, May 4, 2020

Datatable column dropdown
Individual column searching (select inputs)
This example is almost identical to text based individual column example and provides the same functionality, but in this case usingselect
input controls.https://datatables.net/examples/api/multi_filter_select.html
how to make selected column only
initComplete: function ()
{
// Initialize dropdown filter in second column
this.api().columns([1]).every(function ()
{
// ... skipped ...
});
// Initialize text filter in first, third and fourth column
this.api().columns([0, 2, 3]).every(function ()
{
// ... skipped ...
});
}
https://stackoverflow.com/questions/41901232/datatables-individual-column-searching
Tuesday, January 2, 2018

Simple HTML/Javascipt Div with Password
Javacsipt:
HTML
<script type="text/javascript">
function isValid(){
var keyvalue = document.getElementById('keyvalue').value;
if (keyvalue == "hcas")
{document.getElementById('divPassword').style.display = "block";}
else
{alert('ACCESS DENIED')}
}
</script>
HTML
<form name="PasswordField" action=""> Type Password Below:</br> <input type="text" id="keyvalue" name="keyvalue" onkeydown = "if (event.keyCode == 13) document.getElementById('subPass).click()"> <input type="button" id="subPass" value="ACCESS" onclick="isValid(this);"> </form> <div id="
divPassword" style="display:none;"> </br> <p>ACCESS GRANTED</p></br> This is password div </div>
Subscribe to:
Posts
(
Atom
)