Skip to content

Instantly share code, notes, and snippets.

@jagroop jagroop/cb-test.html
Created Jan 16, 2018

What would you like to do?
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<script src="//"></script>
<input type="text" id="sample-text" value="Lorem ipsum dolor sit amet">
<input type="checkbox" id="cb">
<p id="result"></p>
var str = $('#sample-text').val(function(i, t) { return t.substr(0, 4); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.