ArnisR Posted August 8, 2010 Report Posted August 8, 2010 Kā ar jQuery dabūt šīs formas Submit pogas VALUE atribūtu? (type=submit) $('form').submit(function(e) { }); Quote
0 codez Posted August 8, 2010 Report Posted August 8, 2010 $('form').submit(function(){ a=$(this).find('input[type=submit]').val(); console.info(a); return false; }); return false, ja negrib, lai forma nopostotos. Quote
0 ArnisR Posted August 8, 2010 Author Report Posted August 8, 2010 Paldies! .find() bija tas, kas vajadzīgs! Quote
0 briedis Posted August 8, 2010 Report Posted August 8, 2010 Šādas lietas jau nu pašam vajadzēja spēt atrast manuālī: http://docs.jquery.com/Main_Page Ja uz katru šādu sīkumu prasa palīdzību forumā, švaka produktivitāte sanāks... Quote
Question
ArnisR
Kā ar jQuery dabūt šīs formas Submit pogas VALUE atribūtu? (type=submit)
$('form').submit(function(e) {
});
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.