Question

I was wondering how to allow jquery ui button to allow newline.

Before turning to jquery button.

<input type="button" id="btnFX" value="Button Name
With 
New Line" />

turning to jquery button

$('#btnF9').removeAttr('disabled');
$('#btnF9').button();
Was it helpful?

Solution

It's nothing to do with jQuery really:

<button type="button" id="btnFX" >Button Name<br />With<br />New Line</button>
<script> 
    $(function() {
        $("#btnFX").button();
    });
</script>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top