Skip to content

Tag: jquery

Add vertical line along tree view when expanded

I am trying to add a vertical line along first li elements when they are expanded and remove when they are closed but its not coming out. Will li::after not do the job?. please help me with this. This vertical line should be along the first level of heirarchy only I have created a treeview with three list ite…

Trigger download immediately after document ready

I am trying to download a file immediately after a page has been loaded by triggering an a link. But this isn’t working for some reason. Am I doing something wrong? Answer You can dynamically create and click a link when the page loads – simply add this to the page markup:

Display price based on User selection

I can’t seem to get the price to display on the page with image. The correct image displays and the correct price is passed to PayPal, but I can’t get price based on the selection to display with the image. I can not seem to get the price to display on the page with image. The correct image displa…

jQuery font size wrong result

I am trying to write a script to help disabled people to read the site. On a button click, I’d like to increase all font-size in my page. However the script sets wrong values. The code is the following: However, it give me back totally wrong increased number. For example when the current font size was 1…