Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add width attribute for jQuery prompt?

I want to add 75 % width for one prompt, not for all prompt. How to fix this?

JavaScript file prompt:

if (id == 'finalDestination' && data[1] !== undefined && data[1] !== "" && data[1] !== null) {
  $.prompt("<span style='color:red;font-weight:bold;'>INTERNAL REMARKS FOR FD " + destination + "</span>" + "\n" + "</br>" + data[1]);
}
like image 293
Kuppusamy K Avatar asked Dec 05 '25 00:12

Kuppusamy K


1 Answers

you can use like this

$.prompt("<span style='color:red;font-weight:bold;'>INTERNAL REMARKS FOR FD  </span>" + "\n" + "</br>",{ position:{width:100}});
like image 145
Jinesh Avatar answered Dec 07 '25 13:12

Jinesh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!