Skip to content

Instantly share code, notes, and snippets.

View mazfreelance's full-sized avatar
🎯
Focusing

nimza mazfreelance

🎯
Focusing
View GitHub Profile
@mazfreelance
mazfreelance / JQUERY
Created August 22, 2017 07:27
Message box with location href
$.msgBox({
title: "Successfull !",
content: "Your job posting is being processed",
type: "right"
});
window.setTimeout(function () {
location.href = "index.php";
}, 3500);
@mazfreelance
mazfreelance / JQUERY: hide and show input type="text"
Last active August 24, 2017 03:49
JQUERY: hide and show input type="text"
<select name="oth" id="oth">
<option value="">Please Select</option>
<option value="1">1</option>
<option value="2">2</option>
</select>
<input type="text" id="output" style="display: none"/>
$(document).ready(function(){
$("#oth").change(function() {
$(this).val() == "2" ? $('#output').show() : $('#output').hide();