Saturday, 15 March 2014

php - Ajax with method load() for options value in select field -



php - Ajax with method load() for options value in select field -

i have problem select field, because can't grab value of option, code:

<form method="get" name="form1" > <select id="rpc" onchange="$('#rpc').load('aja.province.php?cod=this.value')">

how can send value alternative in php file method get?

best regards.

$('#rpc').load('aja.province.php?cod=this.value') should $('#rpc').load('aja.province.php?cod='+this.value).

this.value not string, javascript expression.

php javascript jquery ajax

No comments:

Post a Comment