we always use ajax to submit form data,but we should get each of elements value,that is terrible,if the form have many form elements how we can do? eg:
............................many............
dataForAjax can collect all of form elements to be a string,which you can use like GET or POST,it can be use to collect text,password,textarea,hidden,checkbox,radio,select eg:
male
female
jquery
php
mysql
jquery
php
mysql
var data = jQuery("#biuuu").dataForAjax({
showMessage:'showmessage',
message:{
'username':'username cann`t be empty',
'password':"password cann`t be empty"
}
});
if the value cann`t be null(like username,password),you can define it,it use very easy,
showMessage is the ID which you want to show error infomation message is the array which you define to show error infomation
dataforajax DEMO
hope you like !
Ohloh computes statistics on FOSS projects by examining source code and commit history in source code management systems. This project has code locations but that location contains no recognizable source code for Ohloh to analyze.
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.