Jump to content


remove chosen in select

style selectbox dropbox

  • Please log in to reply
3 replies to this topic

#1 Maicol Ortiz Tello

Maicol Ortiz Tello

    Newbie

  • Members
  • Pip
  • 4 posts
  • LocationLa Serena , Chile.

Posted 03 July 2014 - 06:00 AM

Hello there! everyone .. I wanted to know if you can remove the style to the select box, ie leave it as native html without plugins implement the "Chosen". 
is it possible?

 



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts
  • LocationMumbai, India

Posted 03 July 2014 - 01:51 PM

it is quite possible...

well what you can do is.. in the GC library .. u can just comment the code in within the load_js_chosen() function..

that will stop it loading chosen js / css

 

hope that much works out for you..

else .. there are api calls with which you can detatch the chosen plugin from a select .. for that you need add your custom script.

 

Happy GCing:)



#3 Maicol Ortiz Tello

Maicol Ortiz Tello

    Newbie

  • Members
  • Pip
  • 4 posts
  • LocationLa Serena , Chile.

Posted 03 July 2014 - 06:58 PM

works perfectly thank you very much! Amit Shah. :) 



#4 SysMora

SysMora

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 14 November 2019 - 10:50 AM

I had a similar Problem with chosen and android on a Huawei - Tablet. 

After I comment the Code in Grochery_CRUD.php the Save Button on the add an edit Form does not function.

I had to comment the line 

 //  $(".chosen-select,.chosen-multiple-select").chosen({allow_single_deselect:true});   

in the jquery.chosen.config.js

and now the select on Tablet ist ok.  :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users