Page 1 of 1

Input element label placement

Posted: Mon Mar 06, 2023 5:07 pm
by mih
Hello!

Is there any method to detach input element label from the element and place the label above element or left element without label?

Re: Input element lable placement

Posted: Mon Mar 06, 2023 5:12 pm
by kev1n
Hi,

This code moves the label associated with the field (with id cus_name) to the top of the input field, instead of being positioned to the left of the field

Code: Select all

$('#cus_name').nuLabelOnTop();
More examples can be found in the Code Library.

Re: Input element lable placement

Posted: Mon Mar 06, 2023 5:26 pm
by mih
Ah! I looked for this in visual editor and missed this function.
And how to remove (hide) label?

Re: Input element lable placement

Posted: Mon Mar 06, 2023 5:33 pm
by kev1n
To remove the label

Code: Select all

$('#label_cus_name').remove();

To hide the label

Code: Select all

$('#label_cus_name').hide();