Posted At : Jan 30, 2012 14:18 PM
| Posted By : Ed Tabara
Related Categories: jQuery Mobile
Related Categories: jQuery Mobile
Was working on a page with form and had the need to dynamicly load a part of it (shipping address fields) if a radio button was checked.
Came out that it is not difficult at all. All is needed is to do the followring:
$("#shipping_address_btn").live("change",function(){
$('#shipping_address').load('shipping_address.cfm',function(){
$('#shipping_address').trigger('create');
});
});
shipping_address_btn is the ID of the radio button
shipping_address is the ID of the DIV where the content should be loaded...
| 24378 Views
| 28% / 0% Popularity