so I am getting an error on safari that says this is not right missing or has to many ( "expected token '}' )..I may never understand these errors...sigh
<script type="text/javascript">
$(document).ready(function(){
$("#countryId").live("change",function(){
var pk_c_code = $(this).val();
var url = 'workingbu/index.php?page=ajax&action=regions&countryId=' pk_c_code;
var result = '';
var sQuery = 'ie. PHP Programmer' ;
$(document).ready(function(){
if($('input[name=sPattern]').val() == sQuery) {
$('input[name=sPattern]').css('color', 'gray');
}
$('input[name=sPattern]').click(function(){
if($('input[name=sPattern]').val() == sQuery) {
$('input[name=sPattern]').val('');
$('input[name=sPattern]').css('color', '');
}
});
$('input[name=sPattern]').blur(function(){
if($('input[name=sPattern]').val() == '') {
$('input[name=sPattern]').val(sQuery);
$('input[name=sPattern]').css('color', 'gray');
}
});
$('input[name=sPattern]').keypress(function(){
$('input[name=sPattern]').css('background','');
})
});
</script>