Parašė cropp· 2014 Vas. 13 21:02:03
#1
Sveiki, kaip pridėti antrą reikšmę, kad išsiųstų į failą.
<script type='text/javascript'><!--
$(document).ready(function() {
// when the user submit a form
$('form').submit(function() {
var url = $(this).attr('action'); // gets the url from 'action' attribute of the current form
// define data to be send to <span style="border-bottom: 1px dotted black;">PHP</span>
// with the key 'pag' and the value selected in the select list (with id='pag')
var data = 'season='+ $('#season').val();
// adds a 'loading...' notification, load the content from url (passing the data)
// and place it into the tag with id='content'
$('#content').html('<h4>Loading...</h4>').load(url, data);
return false;
});
});
Redagavo cropp· 2014 Vas. 13 21:02:10