$('input[type="submit"]').attr("disabled", true); Now, in order to enable the disabled attribute, use the following line of code: $('input[type="submit"]').removeAttr("disabled”);
$(document).ready(function() { //catch the right-click context menu $(document).bind("contextmenu",function(e) { //warning prompt - optional alert("No right-clicking!"); //delete the default context m
var pams = []; var customer = encodeURIComponent($.trim($('#customer').val())); var age = $('#age').val(); var gender = $('#gender').val(); pams.push($('<input>', {name: 'age', value: age})); pams.pus
jQuery Uploadify结合C#实现带进度条的上传 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpLoad.aspx.cs"
收集的35个 jQuery 小技巧/代码片段,可以帮你快速开发. 1. 禁止右键点击 $(document).ready(function(){ $(document).bind("contextmenu"
jQuery获取Select元素,并选择的Text和Value: 1. $("#select_id").change(function(){//code...}); //为Select添加事件,当选择其中一项时触发
" content="text/html; charset=utf-8" />