This only works 1 time. the second time the value is the same as the first time.
$(function()
{
<!--------1.1------------->
$('#select_client_dd').change(function()
{
var client_info = $(this).val();
<!--- first time I receive 1:a:a:a ------->
<!--- second time I receive 2:b:b:b ------->
var client_id = client_info.search(/:/i) ;
<!--- first time I receive 1 ------->
<!--- second time I receive 1 -------->
<!---- does not work > 1x -------->
alert( "client info " + client_info ) ;
alert( "client id " + client_id ) ;
when I select the first client I get the correct answer. (#1)
when I reselect another client I get the initial answer (#1).
What am I doing wrong??
Thanking you in advance you for your time.
dan bloch