문제

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();
도움이 되었습니까?

해결책

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>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top