If you want the value of a form field such as a text area you might think
This is not a bug in jQuery, but just a subtle gotcha in the way the DOM works. The solution is to get the DOM elements value via $('textarea').val().
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Idea for state selection widget"> | |
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
@import "compass/css3/box-sizing"; | |
$m-form-input-types: ( | |
'text', | |
'password', |
If you want the value of a form field such as a text area you might think
This is not a bug in jQuery, but just a subtle gotcha in the way the DOM works. The solution is to get the DOM elements value via $('textarea').val().
This script makes the following assumptions
// ---- | |
// Sass (v3.4.11) | |
// Compass (v1.0.3) | |
// ---- | |
// Via http://css-tricks.com/strategies-keeping-css-specificity-low/ | |
// We can use this SASS format when creating modules | |
.what { | |
color: red; |
#! /bin/bash | |
array=( | |
'feature-branch-1' | |
'feature-branch-2' | |
'feature-branch-3' | |
'feature-branch-4' | |
'feature-branch-5' | |
) |
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
//Use placeholders for repeating visual styles: | |
%dotted-border { border: 1px dotted #eee; } | |
.box { | |
@extend %dotted-border; |