hello all, i could not add a space on submit button. I tried Code (markup): but did not work. how to do this on javascript? $('#dialog').dialog({ autoOpen: false, width: 900, height: 700, modal: true, resizable: false, buttons: { "  ----- Submit Form -----": function() { document.myform.submit(); }, "Cancel": function() { $(this).dialog("close"); } } }); Code (markup):
you mean jQuery, but just a normal space should work.... no need for special characters necessary for a space when using javascript.. i don't see why jQuery would be different. But for a line break \n should work as mentioned above.
when i used just normal space it did not work. I needed more than 1. \xa0 worked perfect. when i used \n it did not work. I sorted out using css. Any idea why \n did not work? buttons: { "\xa0 \xa0 ----- Submit Form ----- \xa0 \xa0": function() { document.myform.submit(); }, Code (markup):
  is not valid is. I've had no issues using it cross browser. If you want a space, why not use + ' ' +? And we're you referring to Mozilla based browsers? Netscape died years ago.