>Anything you could do to make jQuery have to do less work will be
>beneficial.
>

Andy,

This works great for form actions. I've played around with doing the exact same 
thing for any inputs with onclick attributes. But JQ doesn't seem to select up 
the value of the onclick. Do you have any ideas? 

Here's the form one that works. 

$(document).ready(function() {
  var regexp = /action=([a-zA-Z]+\.[a-zA-Z]+)/;  
  var value = $("form").attr('action');  
  var replaced = value.replace(regexp,'action=$1&cte=thompson');
  $("form").attr('action',replaced);  
});

Thanks!

Will 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330950
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to