WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Jquery checkbox toggle | Loop and Break

Jquery checkbox toggle

For checkbox input type, when we tick checkbox we have enabled an input element enclosed in a div tag and when this checkbox in unchecked we hide the same.

Example

<!DOCTYPE html>
<html>
<head>
<title>jQuery Toggle 2</title>
<script
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
	
</script>
<script>
	$(document).ready(function() {
		$("#privatePostPassword").hide(); // hiding div on load

		$("#postPublicOrPrivate").change(function() { // change event for checkbox
			
			// checking if the box is checkedm if yes execute this otherwise else
			if (this.checked) { 
				$("#privatePostPassword").show();
			} else {
				$("#privatePostPassword").hide();
			}
		});
	});
</script>
</head>
<body>
	Do you have any criminal convictions :
	
	<form>

	<input id="postPublicOrPrivate" type="checkbox" />
	<br>

	<div id="privatePostPassword">
		<input type="text" class="form-control" id="postPassword" />
	</div>
	
	</form>

</body>
</html>

Output

Checkbox checked Checkbox unchecked
checked unchecked
Share

You may also like...