Write a JavaScript callback for the jQuery function $(\"#sort\").click. Allow the user to enter three numbers in any order. Output the numbers in ord
$(\"#sort\").click
Here's another (short) solution:
$(document).ready(function () { $("#sort").click(function () { var msg = [$("#a").val(), $("#b").val(), $("#c").val()].sort( function (a, b) { return a - b; }); alert(msg); }); });