jquery - Pass question mark url with Ajax load in a div -


i have simple ajax-load function loads php file div '#content_box' via form. month , year parameters determined respectively #dm , #dy. submit button has passed id #ds. wondering, best way pass these parameters browser url (i.e. how obtain url such www.site.com/ddchart?dm=june&dy=2014&ds=go )?

$(document).ready(function(){   $('#df').submit(function(){     var month_ddchart = $('#dm').val();     var year_ddchart = $('#dy').val();     source_ddchart = '/data/ddc-'+month_ddchart+'-'+year_ddchart+'-body.php';     $('#content_box').load(source_ddchart);     event.preventdefault();   }); }); 


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -