Jquery Not letting Me Save My FULL Text. Only 1 Word

LekDriede

New Member
I have the following code that will check to see if the div text has change and if so then update the text in the mysql table. but when i try and add spaces in the text and it dont allow it to save every thing i have write. Can somebody help me out pleaseThank you. \[code\] <script>function save() { var div_sN6VmIGq = $("#64").text(); var html_sN6VmIGq = $("#64").html(); var top_sN6VmIGq = $("input#sN6VmIGq_top").val(); var left_sN6VmIGq = $("input#sN6VmIGq_left").val(); if(div_sN6VmIGq == "Text Here"){}else{ $('#saveupdate').load('modulus/empty/actions.php?act=save_text&pid=1&div_id=64&div_txt='+html_sN6VmIGq+'&randval='+ Math.random()); } } </script>\[/code\]
 
Back
Top