Я просто сократил ответ, я выбрал немного:
var selectedGroups = new Array();
$("input[@name='user_group[]']:checked").each(function() {
selectedGroups.push($(this).val());
});
и это работает как очарование, Спасибо!
I think I would work from \rule[
. Because the reference point is the lower left corner, you probably don't even need the optional raising argument. Something like:
\newcommand{\doublesignature}[3][Ivar Nesje]{%
\parbox{\textwidth}{
\centering #3 \today\\
\vspace{2cm}
\parbox{7cm}{
\centering
\rule{6cm}{1pt}\\
#1
}
\hfill
\parbox{7cm}{
\centering
\rule{6cm}{1pt}\\
#2
}
}
}
I've re-ordered your arguments to make your name optional.
Assuming there aren't additional formatting restrictions, I probably would have used a tabular
environment instead of boxes, and I would have used \rule{length}{width}
instead of \hrulefill
:
\newcommand{\doubleSignature}[3]{
\vspace{2cm}
\begin{center}
#1, \today
\end{center}
\vspace{3cm}
\noindent
\begin{tabular}{lcl}
\rule{5cm}{1pt} & \hspace{2cm} & \rule{5cm}{1pt} \\
#2 & & #3
\end{tabular}
\vspace{1cm}
}