Tuesday, August 31, 2010

jQuery checkbox state

Markup (html)

< id="chkMatchedSets" type="checkbox">

Javascript (jQuery)

var ischecked = $("#chkMatchedSets").is(':checked');

markup:



javascript:



firebug:



end

Saturday, August 21, 2010

SQL GUID NEWID

Random name

SELECT 'Jon ' + left(CAST(NEWID() as varchar(max)), 8) AS RandomName